pub struct SmallSet<T>(/* private fields */);Expand description
A set, ordered, small in memory while it holds few elements.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for SmallSet<T>
Source§impl<T: Ord> Extend<T> for SmallSet<T>
impl<T: Ord> Extend<T> for SmallSet<T>
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, elements: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, elements: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T: Ord> FromIterator<T> for SmallSet<T>
impl<T: Ord> FromIterator<T> for SmallSet<T>
Source§fn from_iter<I: IntoIterator<Item = T>>(elements: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(elements: I) -> Self
Creates a value from an iterator. Read more
Source§impl<'a, T> IntoIterator for &'a SmallSet<T>
impl<'a, T> IntoIterator for &'a SmallSet<T>
Auto Trait Implementations§
impl<T> Forget for SmallSet<T>
impl<T> Freeze for SmallSet<T>where
SetRepr<T>: Freeze,
impl<T> Move for SmallSet<T>
impl<T> RefUnwindSafe for SmallSet<T>where
SetRepr<T>: RefUnwindSafe,
impl<T> Send for SmallSet<T>where
SetRepr<T>: Send,
impl<T> Sync for SmallSet<T>where
SetRepr<T>: Sync,
impl<T> Unpin for SmallSet<T>where
SetRepr<T>: Unpin,
impl<T> UnsafeUnpin for SmallSet<T>where
SetRepr<T>: UnsafeUnpin,
impl<T> UnwindSafe for SmallSet<T>where
SetRepr<T>: 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