pub trait MutableSet {
type Item: Debug + 'static;
// Required methods
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Item> + 'a>;
fn is_empty(&self) -> bool;
fn contains(&self, value: &Self::Item) -> bool;
fn insert(&mut self, value: Self::Item);
fn remove(&mut self, value: &Self::Item);
fn is_subset(&self, rhs: &Self) -> bool;
fn is_superset(&self, rhs: &Self) -> bool;
fn is_disjoint(&self, rhs: &Self) -> bool;
}
Required Associated Types§
Required Methods§
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Item> + 'a>
fn is_empty(&self) -> bool
fn contains(&self, value: &Self::Item) -> bool
fn insert(&mut self, value: Self::Item)
fn remove(&mut self, value: &Self::Item)
fn is_subset(&self, rhs: &Self) -> bool
fn is_superset(&self, rhs: &Self) -> bool
fn is_disjoint(&self, rhs: &Self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.