Struct ego_tree::NodeRef [] [src]

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

A node reference.

Methods

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

Returns the value of this node.

Returns the ID of this node.

Returns a reference to this node's parent.

Returns a reference to this node's previous sibling.

Returns a reference to this node's next sibling.

Returns a reference to this node's first child.

Returns a reference to this node's last child.

Returns true if this node has siblings.

Returns true if this node has children.

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

Returns an iterator over this node's ancestors.

Returns an iterator over this node's previous siblings.

Returns an iterator over this node's next siblings.

Returns an iterator over this node's children.

Returns an iterator over this node's first children.

Returns an iterator over this node's last children.

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

Trait Implementations

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

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

Returns a copy of the value. Read more

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]

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

This method tests for !=.

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

Formats the value using the given formatter.