[][src]Trait lib::trie::basic::Trie

pub trait Trie<T: Eq + Hash + Clone> {
    fn insert_seq(node: Rc<RefCell<Node<T>>>, words: &[T], leaf: Leaf<T>) { ... }
fn get_leaf(node: Rc<RefCell<Node<T>>>, words: &[T]) -> Leaf<T> { ... }
fn find_node(
        node: Rc<RefCell<Node<T>>>,
        word: &T
    ) -> (bool, Rc<RefCell<Node<T>>>) { ... }
fn find_last_node(
        node: Rc<RefCell<Node<T>>>,
        words: &[T]
    ) -> (usize, Rc<RefCell<Node<T>>>) { ... }
fn add_leaf(node: Rc<RefCell<Node<T>>>, leaf: Leaf<T>) -> bool { ... }
fn add_node(
        node: Rc<RefCell<Node<T>>>,
        node_data: T
    ) -> Rc<RefCell<Node<T>>> { ... } }

Provided methods

fn insert_seq(node: Rc<RefCell<Node<T>>>, words: &[T], leaf: Leaf<T>)

fn get_leaf(node: Rc<RefCell<Node<T>>>, words: &[T]) -> Leaf<T>

fn find_node(
    node: Rc<RefCell<Node<T>>>,
    word: &T
) -> (bool, Rc<RefCell<Node<T>>>)

fn find_last_node(
    node: Rc<RefCell<Node<T>>>,
    words: &[T]
) -> (usize, Rc<RefCell<Node<T>>>)

fn add_leaf(node: Rc<RefCell<Node<T>>>, leaf: Leaf<T>) -> bool

fn add_node(node: Rc<RefCell<Node<T>>>, node_data: T) -> Rc<RefCell<Node<T>>>

Loading content...

Implementors

impl<T: Eq + Hash + Clone> Trie<T> for Node<T>[src]

Loading content...