Trait SetLike

Source
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§

Source

fn contains(&self, item: &Self::Item) -> bool

Source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

Source§

impl<T, S> SetLike for HashSet<T, S>
where T: Eq + Hash + Display + Clone, S: BuildHasher,

Source§

type Item = T

Source§

fn contains(&self, v: &T) -> bool

Source§

fn is_empty(&self) -> bool

Source§

impl<T, S> SetLike for AHashSet<T, S>
where T: Eq + Hash + Display + Clone, S: BuildHasher,

Source§

type Item = T

Source§

fn contains(&self, v: &T) -> bool

Source§

fn is_empty(&self) -> bool

Source§

impl<T, S> SetLike for IndexSet<T, S>
where T: Eq + Hash + Display + Clone, S: BuildHasher,

Source§

type Item = T

Source§

fn contains(&self, v: &T) -> bool

Source§

fn is_empty(&self) -> bool

Implementors§