pub trait SetInterface<T: Borrow<Q>, Q: ?Sized>: Sized {
// Required methods
fn contains(&self, item: &Q) -> bool;
fn get(&self, item: &Q) -> Option<&T>;
fn remove(&mut self, item: &Q) -> Option<T>;
}Available on crate features
collections and traits only.Required Methods§
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.