pub trait SetLike {
type Item: Hash + Eq + Display + Clone;
// Required methods
fn contains(&self, item: &Self::Item) -> bool;
fn is_empty(&self) -> bool;
}Expand description
Represents a generic set-like container with members.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".