pub trait Set<T> {
// Required method
fn contains(&self, elem: &T) -> bool;
// Provided method
fn to_str(&self) -> &str { ... }
}
Expand description
Set relationship.
pub trait Set<T> {
// Required method
fn contains(&self, elem: &T) -> bool;
// Provided method
fn to_str(&self) -> &str { ... }
}
Set relationship.