mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-04-21 06:27:30 -05:00
node: add value_mut accessor
This commit is contained in:
parent
cdee30a5f8
commit
d989c83e08
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user