[][src]Struct ranagrams::trie::TrieNode

pub struct TrieNode {
    pub terminal: bool,
    pub children: Box<[Option<TrieNode>]>,
}

A node in a trie (retrieval tree) representing a word list. A TrieNode contains a boolean indicating whether it is the end of a word and a list of child nodes representing possible continuations of the prefix represented by the node itself.

Fields

terminal: boolchildren: Box<[Option<TrieNode>]>

Implementations

impl TrieNode[src]

pub fn contains(&self, word: &[usize]) -> bool[src]

pub fn size(&self) -> usize[src]

pub fn get(&self, i: usize) -> Option<&TrieNode>[src]

Trait Implementations

impl Clone for TrieNode[src]

impl Debug for TrieNode[src]

impl PartialEq<TrieNode> for TrieNode[src]

impl StructuralPartialEq for TrieNode[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,