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]

[src]

Returns the underlying tree.

[src]

Returns the value of this node.

[src]

Returns the ID of this node.

[src]

Returns a reference to this node's parent.

[src]

Returns a reference to this node's previous sibling.

[src]

Returns a reference to this node's next sibling.

[src]

Returns a reference to this node's first child.

[src]

Returns a reference to this node's last child.

[src]

Returns true if this node has siblings.

[src]

Returns true if this node has children.

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

[src]

Returns an iterator over this node's ancestors.

[src]

Returns an iterator over this node's previous siblings.

[src]

Returns an iterator over this node's next siblings.

[src]

Returns an iterator over this node's children.

[src]

Returns an iterator over this node's first children.

[src]

Returns an iterator over this node's last children.

[src]

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

[src]

Returns an iterator over this node and its descendants.

Trait Implementations

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: Debug + 'a> Debug for NodeRef<'a, T>
[src]

[src]

Formats the value using the given formatter.