ReadableHashSetExt

Trait ReadableHashSetExt 

Source
pub trait ReadableHashSetExt<V, H>: Readable<Target = HashSet<V, H>>
where V: 'static, H: 'static,
{ // 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 { ... } }
Available on crate feature prelude only.
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, H, R> ReadableHashSetExt<V, H> for R
where V: 'static, H: 'static, R: Readable<Target = HashSet<V, H>>,