Struct lattices::collections::EmptySet
source · pub struct EmptySet<T> { /* private fields */ }
Expand description
A type that will always be an empty set.
Trait Implementations§
source§impl<T> CollectionRef for EmptySet<T>
impl<T> CollectionRef for EmptySet<T>
source§type ItemRef<'a> = &'a <EmptySet<T> as Collection>::Item
where
Self::Item: 'a
type ItemRef<'a> = &'a <EmptySet<T> as Collection>::Item where Self::Item: 'a
Type of references to items of the collection.
source§fn upcast_item_ref<'short, 'long: 'short>(
r: Self::ItemRef<'long>,
) -> Self::ItemRef<'short>where
Self: 'long,
fn upcast_item_ref<'short, 'long: 'short>(
r: Self::ItemRef<'long>,
) -> Self::ItemRef<'short>where
Self: 'long,
Changes an item reference into a shorter lived reference. Read more
source§impl<'de, T> Deserialize<'de> for EmptySet<T>
impl<'de, T> Deserialize<'de> for EmptySet<T>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> IntoIterator for EmptySet<T>
impl<T> IntoIterator for EmptySet<T>
source§impl<T: Ord> Ord for EmptySet<T>
impl<T: Ord> Ord for EmptySet<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialOrd> PartialOrd for EmptySet<T>
impl<T: PartialOrd> PartialOrd for EmptySet<T>
impl<T: Copy> Copy for EmptySet<T>
impl<T> Eq for EmptySet<T>
Auto Trait Implementations§
impl<T> Freeze for EmptySet<T>
impl<T> RefUnwindSafe for EmptySet<T>where
T: RefUnwindSafe,
impl<T> Send for EmptySet<T>where
T: Send,
impl<T> Sync for EmptySet<T>where
T: Sync,
impl<T> Unpin for EmptySet<T>where
T: Unpin,
impl<T> UnwindSafe for EmptySet<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more