Struct rinutil::idtree::NodeIdRef [−][src]
pub struct NodeIdRef<'a, T: 'a> { /* fields omitted */ }
Methods
impl<'a, T: 'a> NodeIdRef<'a, T>
[src]
impl<'a, T: 'a> NodeIdRef<'a, T>
pub fn id(&self) -> NodeId
[src]
pub fn id(&self) -> NodeId
ⓘImportant traits for Ancestors<'a, T>pub fn ancestors(&self) -> Ancestors<T>
[src]
pub fn ancestors(&self) -> Ancestors<T>
Return an iterator of references to this node and its ancestors.
Call .next().unwrap()
once on the iterator to skip the node itself.
ⓘImportant traits for PrecedingSiblings<'a, T>pub fn preceding_siblings(&self) -> PrecedingSiblings<T>
[src]
pub fn preceding_siblings(&self) -> PrecedingSiblings<T>
Return an iterator of references to this node and the siblings before it.
Call .next().unwrap()
once on the iterator to skip the node itself.
ⓘImportant traits for FollowingSiblings<'a, T>pub fn following_siblings(&self) -> FollowingSiblings<T>
[src]
pub fn following_siblings(&self) -> FollowingSiblings<T>
Return an iterator of references to this node and the siblings after it.
Call .next().unwrap()
once on the iterator to skip the node itself.
ⓘImportant traits for Children<'a, T>pub fn children(&self) -> Children<T>
[src]
pub fn children(&self) -> Children<T>
Return an iterator of references to this node’s children.
ⓘImportant traits for ReverseChildren<'a, T>pub fn reverse_children(&self) -> ReverseChildren<T>
[src]
pub fn reverse_children(&self) -> ReverseChildren<T>
Return an iterator of references to this node’s children, in reverse order.
ⓘImportant traits for Descendants<'a, T>pub fn descendants(&self) -> Descendants<T>
[src]
pub fn descendants(&self) -> Descendants<T>
Return an iterator of references to this node and its descendants, in tree order.
Parent nodes appear before the descendants.
Call .next().unwrap()
once on the iterator to skip the node itself.
ⓘImportant traits for Traverse<'a, T>pub fn traverse(&self) -> Traverse<T>
[src]
pub fn traverse(&self) -> Traverse<T>
Return an iterator of references to this node and its descendants, in tree order.
ⓘImportant traits for ReverseTraverse<'a, T>pub fn reverse_traverse(&self) -> ReverseTraverse<T>
[src]
pub fn reverse_traverse(&self) -> ReverseTraverse<T>
Return an iterator of references to this node and its descendants, in tree order.
Methods from Deref<Target = Node<T>>
pub fn parent(&self) -> Option<NodeId>
[src]
pub fn parent(&self) -> Option<NodeId>
Return the ID of the parent node, unless this node is the root of the tree.
pub fn first_child(&self) -> Option<NodeId>
[src]
pub fn first_child(&self) -> Option<NodeId>
Return the ID of the first child of this node, unless it has no child.
pub fn last_child(&self) -> Option<NodeId>
[src]
pub fn last_child(&self) -> Option<NodeId>
Return the ID of the last child of this node, unless it has no child.
pub fn previous_sibling(&self) -> Option<NodeId>
[src]
pub fn previous_sibling(&self) -> Option<NodeId>
Return the ID of the previous sibling of this node, unless it is a first child.
pub fn next_sibling(&self) -> Option<NodeId>
[src]
pub fn next_sibling(&self) -> Option<NodeId>
Return the ID of the previous sibling of this node, unless it is a first child.