[][src]Struct indextree::Node

pub struct Node<T> {
    pub data: T,
    // some fields omitted
}

A node within a particular Arena

Fields

data: T

The actual data which will be stored within the tree

Methods

impl<T> Node<T>[src]

pub fn parent(&self) -> Option<NodeId>[src]

Return the ID of the parent node, unless this node is the root of the tree.

pub fn first_child(&self) -> Option<NodeId>[src]

Return the ID of the first child of this node, unless it has no child.

pub fn last_child(&self) -> Option<NodeId>[src]

Return the ID of the last child of this node, unless it has no child.

pub fn previous_sibling(&self) -> Option<NodeId>[src]

Return the ID of the previous sibling of this node, unless it is a first child.

pub fn next_sibling(&self) -> Option<NodeId>[src]

Return the ID of the next sibling of this node, unless it is a last child.

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

Check if the node is marked as removed

Trait Implementations

impl<T: PartialEq> PartialEq<Node<T>> for Node<T>[src]

impl<T: Clone> Clone for Node<T>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Node<T>[src]

impl<T> Display for Node<T>[src]

Auto Trait Implementations

impl<T> Send for Node<T> where
    T: Send

impl<T> Sync for Node<T> where
    T: Sync

Blanket Implementations

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

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]