[][src]Struct lib::trie::basic::Node

pub struct Node<T: Eq + Hash + Clone> {
    pub node: HashMap<T, Rc<RefCell<Node<T>>>>,
    pub leaf: Leaf<T>,
}

Fields

node: HashMap<T, Rc<RefCell<Node<T>>>>leaf: Leaf<T>

Methods

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

pub fn new() -> Rc<RefCell<Node<T>>>[src]

Trait Implementations

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

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

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

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

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

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

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

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

Auto Trait Implementations

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

impl<T> !Sync for Node<T>

impl<T> !Send for Node<T>

impl<T> !RefUnwindSafe for Node<T>

impl<T> !UnwindSafe for Node<T>

Blanket Implementations

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.

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

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

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