[][src]Struct oxymcts::NodeRef

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

Node reference.

Implementations

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

pub fn id(&self) -> NodeId[src]

Returns the ID of this node.

pub fn tree(&self) -> &'a Tree<T>[src]

Returns the tree owning this node.

pub fn value(&self) -> &'a T[src]

Returns the value of this node.

pub fn parent(&self) -> Option<NodeRef<'a, T>>[src]

Returns the parent of this node.

pub fn prev_sibling(&self) -> Option<NodeRef<'a, T>>[src]

Returns the previous sibling of this node.

pub fn next_sibling(&self) -> Option<NodeRef<'a, T>>[src]

Returns the next sibling of this node.

pub fn first_child(&self) -> Option<NodeRef<'a, T>>[src]

Returns the first child of this node.

pub fn last_child(&self) -> Option<NodeRef<'a, T>>[src]

Returns the last child of this node.

pub fn has_siblings(&self) -> bool[src]

Returns true if this node has siblings.

pub fn has_children(&self) -> bool[src]

Returns true if this node has children.

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

pub fn ancestors(&self) -> Ancestors<'a, T>

Notable traits for Ancestors<'a, T>

impl<'a, T> Iterator for Ancestors<'a, T> where
    T: 'a, 
type Item = NodeRef<'a, T>;
[src]

Returns an iterator over ancestors.

pub fn prev_siblings(&self) -> PrevSiblings<'a, T>

Notable traits for PrevSiblings<'a, T>

impl<'a, T> Iterator for PrevSiblings<'a, T> where
    T: 'a, 
type Item = NodeRef<'a, T>;
[src]

Returns an iterator over previous siblings.

pub fn next_siblings(&self) -> NextSiblings<'a, T>

Notable traits for NextSiblings<'a, T>

impl<'a, T> Iterator for NextSiblings<'a, T> where
    T: 'a, 
type Item = NodeRef<'a, T>;
[src]

Returns an iterator over next siblings.

pub fn first_children(&self) -> FirstChildren<'a, T>

Notable traits for FirstChildren<'a, T>

impl<'a, T> Iterator for FirstChildren<'a, T> where
    T: 'a, 
type Item = NodeRef<'a, T>;
[src]

Returns an iterator over first children.

pub fn last_children(&self) -> LastChildren<'a, T>

Notable traits for LastChildren<'a, T>

impl<'a, T> Iterator for LastChildren<'a, T> where
    T: 'a, 
type Item = NodeRef<'a, T>;
[src]

Returns an iterator over last children.

pub fn children(&self) -> Children<'a, T>

Notable traits for Children<'a, T>

impl<'a, T> Iterator for Children<'a, T> where
    T: 'a, 
type Item = NodeRef<'a, T>;
[src]

Returns an iterator over children.

pub fn traverse(&self) -> Traverse<'a, T>

Notable traits for Traverse<'a, T>

impl<'a, T> Iterator for Traverse<'a, T> where
    T: 'a, 
type Item = Edge<'a, T>;
[src]

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

pub fn descendants(&self) -> Descendants<'a, T>

Notable traits for Descendants<'a, T>

impl<'a, T> Iterator for Descendants<'a, T> where
    T: 'a, 
type Item = NodeRef<'a, T>;
[src]

Returns an iterator over this node and its descendants.

Trait Implementations

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

impl<'a, T> Unpin for NodeRef<'a, T>

impl<'a, T> UnwindSafe for NodeRef<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,