Struct erg_common::set::Set
source · [−]pub struct Set<T> { /* private fields */ }
Implementations
sourceimpl<T: Hash + Eq> Set<T>
impl<T: Hash + Eq> Set<T>
pub fn get<Q>(&self, value: &Q) -> Option<&T> where
T: Borrow<Q>,
Q: ?Sized + Hash + Eq,
pub fn contains<Q>(&self, value: &Q) -> bool where
T: Borrow<Q>,
Q: ?Sized + Hash + Eq,
pub fn insert(&mut self, value: T)
pub fn remove<Q>(&mut self, value: &Q) -> bool where
T: Borrow<Q>,
Q: ?Sized + Hash + Eq,
pub fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
pub fn is_superset(&self, other: &Set<T>) -> bool
pub fn merge(&mut self, other: Self)
pub fn concat(self, other: Self) -> Self
Trait Implementations
sourceimpl<T: Hash + Eq> FromIterator<T> for Set<T>
impl<T: Hash + Eq> FromIterator<T> for Set<T>
sourcefn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Set<T>
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Set<T>
Creates a value from an iterator. Read more
impl<T: Hash + Eq> Eq for Set<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Set<T> where
T: RefUnwindSafe,
impl<T> Send for Set<T> where
T: Send,
impl<T> Sync for Set<T> where
T: Sync,
impl<T> Unpin for Set<T> where
T: Unpin,
impl<T> UnwindSafe for Set<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more