pub trait SetLike<T> {
// Required methods
fn insert(&mut self, t: T) -> bool;
fn extend(&mut self, iter: impl Iterator<Item = T>);
fn contains(&self, t: &T) -> bool;
fn remove(&mut self, t: &T) -> bool;
}Required Methods§
fn insert(&mut self, t: T) -> bool
fn extend(&mut self, iter: impl Iterator<Item = T>)
fn contains(&self, t: &T) -> bool
fn remove(&mut self, t: &T) -> 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.