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.
pub trait SetLike {
type Item: Hash + Eq + Display + Clone;
// Required methods
fn contains(&self, item: &Self::Item) -> bool;
fn is_empty(&self) -> bool;
}
Represents a generic set-like container with members.