Struct trie_generic::Trie
source · [−]pub struct Trie<T> {
pub root: Cell<TNode<T>>,
}
Fields
root: Cell<TNode<T>>
Implementations
sourceimpl<T> Trie<T>
impl<T> Trie<T>
pub fn new(content: Option<T>) -> Trie<T>
pub fn add(&mut self, s: &str, content: Option<T>)
pub fn pp(&mut self) -> String
pub fn find<'a>(
&'a mut self,
s: &'a str,
must_be_terminal: bool
) -> Option<(Vec<char>, LongestPrefFlags)>
pub fn longest_prefix<'a>(
&'a mut self,
s: &'a str,
must_be_terminal: bool
) -> Option<(Vec<char>, LongestPrefFlags)>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Trie<T>
impl<T> Send for Trie<T>where
T: Send,
impl<T> !Sync for Trie<T>
impl<T> Unpin for Trie<T>where
T: Unpin,
impl<T> UnwindSafe for Trie<T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more