pub struct TrieSet<T, A = u8>(_);
Implementations
sourceimpl<A: Clone + Eq + Hash, T: AsRef<[A]> + Clone> TrieSet<T, A>
impl<A: Clone + Eq + Hash, T: AsRef<[A]> + Clone> TrieSet<T, A>
pub fn new() -> Self
pub fn clear(&mut self)
pub fn contains<S: AsRef<[A]> + ?Sized>(&self, elem: &S) -> boolwhere
T: Borrow<S>,
pub fn insert(&mut self, elem: T) -> bool
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, &T>
pub fn iter_prefix<S: AsRef<[A]> + ?Sized>(&self, prefix: &S) -> Iter<'_, &T>where
T: Borrow<S>,
pub fn len(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl<T, A> RefUnwindSafe for TrieSet<T, A>where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> Send for TrieSet<T, A>where
A: Send,
T: Send,
impl<T, A> Sync for TrieSet<T, A>where
A: Sync,
T: Sync,
impl<T, A> Unpin for TrieSet<T, A>where
A: Unpin,
T: Unpin,
impl<T, A> UnwindSafe for TrieSet<T, A>where
A: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more