pub struct Set<T: Obj>(/* private fields */);Expand description
Garbage-collected hash set implementing Copy.
This implements Ord but the order is not meaningful; this is just so one can use BTreeMaps.
In particular, the order might differ across two runs of the same program.
Implementations§
Trait Implementations§
impl<T: Copy + Obj> Copy for Set<T>
Source§impl<'de, T: Obj + Deserialize<'de>> Deserialize<'de> for Set<T>
impl<'de, T: Obj + Deserialize<'de>> Deserialize<'de> for Set<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
impl<T: Eq + Obj> Eq for Set<T>
Source§impl<U: Obj> FromIterator<U> for Set<U>
impl<U: Obj> FromIterator<U> for Set<U>
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = U>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = U>,
Creates a value from an iterator. Read more
Source§impl<T: Obj> IntoIterator for Set<T>
impl<T: Obj> IntoIterator for Set<T>
Source§impl<T: Ord + Obj> Ord for Set<T>
impl<T: Ord + Obj> Ord for Set<T>
1.21.0 (const: unstable) · 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 + Obj> PartialOrd for Set<T>
impl<T: PartialOrd + Obj> PartialOrd for Set<T>
impl<T: PartialEq + Obj> StructuralPartialEq for Set<T>
Auto Trait Implementations§
impl<T> !Send for Set<T>
impl<T> !Sync for Set<T>
impl<T> Freeze for Set<T>
impl<T> RefUnwindSafe for Set<T>where
T: RefUnwindSafe,
impl<T> Unpin for Set<T>where
T: Unpin,
impl<T> UnsafeUnpin for Set<T>
impl<T> UnwindSafe for Set<T>where
T: RefUnwindSafe + 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