[][src]Struct toolshed::set::BloomSet

pub struct BloomSet<'arena, I> { /* 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>[src]

pub const fn new() -> Self[src]

Creates a new, empty BloomSet.

Important traits for SetIter<'arena, I>
pub fn iter(&self) -> SetIter<'arena, I>[src]

Get an iterator over the elements in the set

pub fn is_empty(&self) -> bool[src]

Returns true if the set contains no elements.

pub fn clear(&self)[src]

Clears the map.

impl<'arena, I> BloomSet<'arena, I> where
    I: Eq + Hash + Copy + AsRef<[u8]>, 
[src]

pub fn insert(&self, arena: &'arena Arena, item: I)[src]

Inserts a value into the set.

pub fn contains(&self, item: I) -> bool[src]

Returns true if the set contains a value.

Trait Implementations

impl<'a, 'b, A, B> PartialEq<BloomSet<'b, B>> for BloomSet<'a, A> where
    A: PartialEq<B>, 
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'arena, I: Copy> Copy for BloomSet<'arena, I>[src]

impl<'arena, I: Clone> Clone for BloomSet<'arena, I>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'arena, I> From<Set<'arena, I>> for BloomSet<'arena, I> where
    I: Eq + Hash + Copy + AsRef<[u8]>, 
[src]

impl<'arena, I> From<BloomSet<'arena, I>> for Set<'arena, I>[src]

impl<'arena, I> IntoIterator for BloomSet<'arena, I>[src]

type Item = &'arena I

The type of the elements being iterated over.

type IntoIter = SetIter<'arena, I>

Which kind of iterator are we turning this into?

impl<'arena, I> Debug for BloomSet<'arena, I> where
    I: Debug
[src]

Auto Trait Implementations

impl<'arena, I> Send for BloomSet<'arena, I>

impl<'arena, I> !Sync for BloomSet<'arena, I>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]