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