pub struct TrieNode<V: 'static + Copy> {
pub offset: usize,
pub value: Option<V>,
pub children: &'static [Option<&'static TrieNode<V>>],
}
Fields§
§offset: usize
§value: Option<V>
§children: &'static [Option<&'static TrieNode<V>>]
Implementations§
Source§impl<V: 'static + Copy> TrieNode<V>
impl<V: 'static + Copy> TrieNode<V>
pub fn shortest_matching_prefix( &self, text: &[u8], from: usize, ) -> (&TrieNode<V>, usize)
pub fn longest_matching_prefix(&self, text: &[u8]) -> TrieNodeMatch<V>
Auto Trait Implementations§
impl<V> Freeze for TrieNode<V>where
V: Freeze,
impl<V> RefUnwindSafe for TrieNode<V>where
V: RefUnwindSafe,
impl<V> Send for TrieNode<V>
impl<V> Sync for TrieNode<V>where
V: Sync,
impl<V> Unpin for TrieNode<V>where
V: Unpin,
impl<V> UnwindSafe for TrieNode<V>where
V: UnwindSafe + 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