pub struct StringTrie { /* private fields */ }Expand description
Simple trie for efficient string prefix lookup.
Implementations§
Source§impl StringTrie
impl StringTrie
Sourcepub fn starts_with(&self, prefix: &str) -> Vec<String>
pub fn starts_with(&self, prefix: &str) -> Vec<String>
Find all strings with a given prefix.
Trait Implementations§
Source§impl Clone for StringTrie
impl Clone for StringTrie
Source§impl Debug for StringTrie
impl Debug for StringTrie
Auto Trait Implementations§
impl Forget for StringTrie
impl Freeze for StringTrie
impl Move for StringTrie
impl RefUnwindSafe for StringTrie
impl Send for StringTrie
impl Sync for StringTrie
impl Unpin for StringTrie
impl UnsafeUnpin for StringTrie
impl UnwindSafe for StringTrie
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