Struct lattices::collections::VecSet
source · #[repr(transparent)]pub struct VecSet<T>(pub Vec<T>);
Expand description
A Vec
-wrapper representing a naively-implemented set.
Tuple Fields§
§0: Vec<T>
Trait Implementations§
source§impl<T> CollectionMut for VecSet<T>
impl<T> CollectionMut for VecSet<T>
§type ItemMut<'a> = &'a mut <VecSet<T> as Collection>::Item
where
Self: 'a
type ItemMut<'a> = &'a mut <VecSet<T> as Collection>::Item where Self: 'a
Type of mutable references to items of the collection.
source§fn upcast_item_mut<'short, 'long: 'short>(
r: Self::ItemMut<'long>
) -> Self::ItemMut<'short>where
Self: 'long,
fn upcast_item_mut<'short, 'long: 'short>(
r: Self::ItemMut<'long>
) -> Self::ItemMut<'short>where
Self: 'long,
Changes an item mutable reference into a shorter lived mutable reference. Read more
source§impl<T> CollectionRef for VecSet<T>
impl<T> CollectionRef for VecSet<T>
§type ItemRef<'a> = &'a <VecSet<T> as Collection>::Item
where
Self: 'a
type ItemRef<'a> = &'a <VecSet<T> as Collection>::Item where Self: '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 VecSet<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for VecSet<T>where
T: Deserialize<'de>,
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 VecSet<T>
impl<T> IntoIterator for VecSet<T>
source§impl<T: Ord> Ord for VecSet<T>
impl<T: Ord> Ord for VecSet<T>
source§impl<T: PartialEq> PartialEq for VecSet<T>
impl<T: PartialEq> PartialEq for VecSet<T>
source§impl<T: PartialOrd> PartialOrd for VecSet<T>
impl<T: PartialOrd> PartialOrd for VecSet<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Eq> Eq for VecSet<T>
impl<T> StructuralPartialEq for VecSet<T>
Auto Trait Implementations§
impl<T> Freeze for VecSet<T>
impl<T> RefUnwindSafe for VecSet<T>where
T: RefUnwindSafe,
impl<T> Send for VecSet<T>where
T: Send,
impl<T> Sync for VecSet<T>where
T: Sync,
impl<T> Unpin for VecSet<T>where
T: Unpin,
impl<T> UnwindSafe for VecSet<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