pub struct OrdinalSet<T> { /* private fields */ }Expand description
Default set implementation.
All operations are constant time
(provided that T::ordinal() is constant time).
This map allocates memory when the number of elements is greater than 64.
When the number of elements is known to be less than or equal to 64,
consider using Set64 instead.
Implementations§
Trait Implementations§
Source§impl<T> Clone for OrdinalSet<T>
impl<T> Clone for OrdinalSet<T>
Source§impl<T: Ordinal> Default for OrdinalSet<T>
impl<T: Ordinal> Default for OrdinalSet<T>
Source§impl<T: Ordinal> FromIterator<T> for OrdinalSet<T>
impl<T: Ordinal> FromIterator<T> for OrdinalSet<T>
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<T> Freeze for OrdinalSet<T>
impl<T> RefUnwindSafe for OrdinalSet<T>where
T: RefUnwindSafe,
impl<T> Send for OrdinalSet<T>where
T: Send,
impl<T> Sync for OrdinalSet<T>where
T: Sync,
impl<T> Unpin for OrdinalSet<T>where
T: Unpin,
impl<T> UnwindSafe for OrdinalSet<T>where
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