ReadableHashSetExt

Trait ReadableHashSetExt 

Source
pub trait ReadableHashSetExt<V: 'static, H: 'static>: Readable<Target = HashSet<V, H>> {
    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn len(&self) -> usize { ... }
    fn capacity(&self) -> usize { ... }
    fn contains(&self, value: &V) -> bool
       where V: Hash + Eq,
             H: BuildHasher { ... }
}
Expand description

An extension trait for Readable<HashSet<V, H>> that provides some convenience methods.

Provided Methods§

Source

fn is_empty(&self) -> bool

Check if the hashset is empty.

Source

fn len(&self) -> usize

Get the length of the hashset.

Source

fn capacity(&self) -> usize

Get the capacity of the hashset.

Source

fn contains(&self, value: &V) -> bool
where V: Hash + Eq, H: BuildHasher,

Check if the hashset contains the given value.

Implementors§

Source§

impl<V: 'static, H: 'static, R> ReadableHashSetExt<V, H> for R
where R: Readable<Target = HashSet<V, H>>,