pub struct Trie<'a, T> { /* private fields */ }Implementations§
Source§impl<'a, T> Trie<'a, T>
impl<'a, T> Trie<'a, T>
pub fn with_terminator(term: u8) -> Trie<'a, T>
pub fn for_ascii() -> Trie<'a, T>
pub fn for_utf8() -> Trie<'a, T>
pub fn insert( &mut self, key: &[u8], value: T, ) -> Result<Option<T>, KeyContainsTerminator>
pub unsafe fn insert_unchecked(&mut self, key: &[u8], value: T) -> Option<T>
pub fn contains(&self, key: &[u8]) -> Result<bool, KeyContainsTerminator>
pub unsafe fn contains_unchecked(&self, key: &[u8]) -> bool
pub fn get(&self, key: &[u8]) -> Result<Option<&T>, KeyContainsTerminator>
pub unsafe fn get_unchecked(&self, key: &[u8]) -> Option<&T>
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<'a, T> Freeze for Trie<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for Trie<'a, T>
impl<'a, T> !Send for Trie<'a, T>
impl<'a, T> !Sync for Trie<'a, T>
impl<'a, T> Unpin for Trie<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for Trie<'a, T>
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