Struct trie_generic::Trie
source · [−]Fields
root: RefCell<TNode<T>>
Implementations
sourceimpl<T: Display + Debug + Copy> Trie<T>
impl<T: Display + Debug + Copy> 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, print_content: bool) -> 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)>
pub fn remove(&mut self, s: &str, remove_subtree: bool) -> (bool, Option<T>)
Trait Implementations
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