Trait i_tree::array::Array

source ·
pub trait Array<T> {
    // Required methods
    fn ordered_list(&self) -> Vec<T>;
    fn fill_ordered_list(&self, list: &mut Vec<T>);
    fn fill_ordered_list_with_stack(
        &self,
        list: &mut Vec<T>,
        stack: &mut Vec<StackNode>
    );
}

Required Methods§

source

fn ordered_list(&self) -> Vec<T>

source

fn fill_ordered_list(&self, list: &mut Vec<T>)

source

fn fill_ordered_list_with_stack( &self, list: &mut Vec<T>, stack: &mut Vec<StackNode> )

Implementors§

source§

impl<T: Clone + PartialEq + Eq + PartialOrd + Ord> Array<T> for Tree<T>