Struct ego_tree::NodeRef [] [src]

pub struct NodeRef<'a, T: 'a> { /* fields omitted */ }

Node reference.

Methods

impl<'a, T: 'a> NodeRef<'a, T>
[src]

Important traits for Ancestors<'a, T>
[src]

Returns an iterator over ancestors.

Important traits for PrevSiblings<'a, T>
[src]

Returns an iterator over previous siblings.

Important traits for NextSiblings<'a, T>
[src]

Returns an iterator over next siblings.

Important traits for FirstChildren<'a, T>
[src]

Returns an iterator over first children.

Important traits for LastChildren<'a, T>
[src]

Returns an iterator over last children.

Important traits for Children<'a, T>
[src]

Returns an iterator over children.

Important traits for Traverse<'a, T>
[src]

Returns an iterator which traverses the subtree starting at this node.

Important traits for Descendants<'a, T>
[src]

Returns an iterator over this node and its descendants.

impl<'a, T: 'a> NodeRef<'a, T>
[src]

[src]

Returns the value of this node.

[src]

Returns the tree containing this node.

[src]

Returns the ID of this node.

[src]

Returns the parent of this node.

[src]

Returns the previous sibling of this node.

[src]

Returns the next sibling of this node.

[src]

Returns the first child of this node.

[src]

Returns the last child of this node.

[src]

Returns true if this node has siblings.

[src]

Returns true if this node has children.

Trait Implementations

impl<'a, T: Debug + 'a> Debug for NodeRef<'a, T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, T: 'a> Copy for NodeRef<'a, T>
[src]

impl<'a, T: 'a> Clone for NodeRef<'a, T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a, T: 'a> Eq for NodeRef<'a, T>
[src]

impl<'a, T: 'a> PartialEq for NodeRef<'a, T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<'a, T: 'a> From<NodeMut<'a, T>> for NodeRef<'a, T>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<'a, T> Send for NodeRef<'a, T> where
    T: Sync

impl<'a, T> Sync for NodeRef<'a, T> where
    T: Sync