[][src]Struct xtree::Tree

pub struct Tree<T> { /* fields omitted */ }

Implementations

impl<T> Tree<T>[src]

pub fn new(data: T) -> Tree<T>[src]

pub fn add_child(&mut self, child: Tree<T>)[src]

pub fn cursor(&self) -> Cursor<'_, T>[src]

pub fn cursor_mut(&mut self) -> CursorMut<'_, T>[src]

pub fn dfs_iter(&self) -> DfsIter<'_, T>

Notable traits for DfsIter<'a, T>

impl<'a, T> Iterator for DfsIter<'a, T> type Item = &'a T;
[src]

pub fn dfs_iter_mut(&mut self) -> DfsIterMut<'_, T>

Notable traits for DfsIterMut<'a, T>

impl<'a, T> Iterator for DfsIterMut<'a, T> type Item = &'a mut T;
[src]

pub fn bfs_iter(&self) -> BfsIter<'_, T>

Notable traits for BfsIter<'a, T>

impl<'a, T> Iterator for BfsIter<'a, T> type Item = &'a T;
[src]

pub fn bfs_iter_mut(&mut self) -> BfsIterMut<'_, T>

Notable traits for BfsIterMut<'a, T>

impl<'a, T> Iterator for BfsIterMut<'a, T> type Item = &'a mut T;
[src]

Trait Implementations

impl<T> Div<Tree<T>> for Tree<T>[src]

type Output = Tree<T>

The resulting type after applying the / operator.

Auto Trait Implementations

impl<T> RefUnwindSafe for Tree<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Tree<T> where
    T: Send
[src]

impl<T> Sync for Tree<T> where
    T: Sync
[src]

impl<T> Unpin for Tree<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Tree<T> where
    T: UnwindSafe
[src]

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, 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.