Struct bloomchain::Bloom [] [src]

pub struct Bloom(_);

2048 bits long hash.

Methods

impl Bloom
[src]

TODO: this functions should be moved to trait and made generic, for bloom with any size.

fn contains(&self, bloom: &Bloom) -> bool

Quickly checks if this bloom contains the other bloom.

Trait Implementations

impl From<[u8; 256]> for Bloom
[src]

fn from(bytes: [u8; 256]) -> Self

Performs the conversion.

impl Into<[u8; 256]> for Bloom
[src]

fn into(self) -> [u8; 256]

Performs the conversion.

impl Default for Bloom
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl Clone for Bloom
[src]

fn clone(&self) -> Self

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl BitOr for Bloom
[src]

type Output = Bloom

The resulting type after applying the | operator

fn bitor(self, rhs: Self) -> Bloom

The method for the | operator

impl<'a> BitOr for &'a Bloom
[src]

type Output = Bloom

The resulting type after applying the | operator

fn bitor(self, rhs: Self) -> Bloom

The method for the | operator