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§fn clone(&self) -> StringTrie
fn clone(&self) -> StringTrie
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringTrie
impl Debug for StringTrie
Source§impl Default for StringTrie
impl Default for StringTrie
Source§fn default() -> StringTrie
fn default() -> StringTrie
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze 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