Enum trie_generic::TNode
source · [−]Variants
Empty
Leaf(Leaf<'a, T>)
Node(Node<'a, T>)
Implementations
sourceimpl<'a, T: Display + Debug> TNode<'a, T>
impl<'a, T: Display + Debug> TNode<'a, T>
pub fn add(
&mut self,
s: &str,
cont: &'a Option<T>
) -> Result<&TNode<'_, T>, KeyExists>
pub fn contains_key(&self, s: &str) -> bool
pub fn find(&self, s: &str, must_be_terminal: bool) -> Option<&TNode<'_, T>>
pub fn longest_prefix(&'a mut self, s: &'a str, must_be_terminal: bool) -> String
pub fn pp(&self, print_content: bool) -> String
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for TNode<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for TNode<'a, T>where
T: Sync,
impl<'a, T> Sync for TNode<'a, T>where
T: Sync,
impl<'a, T> Unpin for TNode<'a, T>
impl<'a, T> UnwindSafe for TNode<'a, T>where
T: 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