Struct toolshed::set::BloomSet
[−]
[src]
pub struct BloomSet<'arena, I: 'arena> { /* fields omitted */ }
A set of values with a bloom filter. This structure is
using a BloomMap
with value type set to ()
internally.
Methods
impl<'arena, I> BloomSet<'arena, I> where
I: Eq + Hash + Copy + AsRef<[u8]>,
[src]
I: Eq + Hash + Copy + AsRef<[u8]>,
fn new() -> Self
[src]
Creates a new, empty BloomSet
.
fn insert(&self, arena: &'arena Arena, item: I)
[src]
Inserts a value into the set.
fn contains(&self, item: I) -> bool
[src]
Returns true
if the set contains a value.
fn is_empty(&self) -> bool
[src]
Returns true
if the set contains no elements.
fn clear(&self)
[src]
Clears the map.