mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-07 10:05:13 -05:00
node: add value_mut accessor
This commit is contained in:
@@ -170,6 +170,11 @@ impl Node {
|
||||
self.value.as_ref()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn value_mut(&mut self) -> Option<&mut Value> {
|
||||
self.value.as_mut()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn children_iter(&self) -> OptionIterator<&Vec<Node>> {
|
||||
OptionIterator::new(self.children())
|
||||
|
||||
Reference in New Issue
Block a user