pub struct TrieSet<T, A = u8>(/* private fields */);Implementations§
Source§impl<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> Freeze for TrieSet<T, A>where
T: Freeze,
impl<T, A> RefUnwindSafe for TrieSet<T, A>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<T, A> Send for TrieSet<T, A>
impl<T, A> Sync for TrieSet<T, A>
impl<T, A> Unpin for TrieSet<T, A>
impl<T, A> UnwindSafe for TrieSet<T, A>where
T: UnwindSafe,
A: UnwindSafe,
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