pub enum TNode<'a, T: Display + Debug> {
Empty,
Leaf(Leaf<'a, T>),
Node(Node<'a, T>),
}
Variants§
Implementations§
Source§impl<'a, T: Display + Debug> TNode<'a, T>
impl<'a, T: Display + Debug> TNode<'a, T>
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
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for TNode<'a, T>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more