Enum smolset::InnerSmolSet [−][src]
pub enum InnerSmolSet<A: Array> where
A::Item: PartialEq + Eq, { Stack(SmallVec<A>), Heap(HashSet<A::Item>), }
Expand description
Internal (and true) representation of the SmolSet.
Created so that user are not aware of the sum type.
Variants
Stack(SmallVec<A>)Trait Implementations
Auto Trait Implementations
impl<A> RefUnwindSafe for InnerSmolSet<A> where
A: RefUnwindSafe,
<A as Array>::Item: RefUnwindSafe,
A: RefUnwindSafe,
<A as Array>::Item: RefUnwindSafe,
impl<A> Send for InnerSmolSet<A> where
<A as Array>::Item: Send,
<A as Array>::Item: Send,
impl<A> Sync for InnerSmolSet<A> where
A: Sync,
<A as Array>::Item: Sync,
A: Sync,
<A as Array>::Item: Sync,
impl<A> Unpin for InnerSmolSet<A> where
A: Unpin,
<A as Array>::Item: Unpin,
A: Unpin,
<A as Array>::Item: Unpin,
impl<A> UnwindSafe for InnerSmolSet<A> where
A: UnwindSafe,
<A as Array>::Item: RefUnwindSafe + UnwindSafe,
A: UnwindSafe,
<A as Array>::Item: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more