Trait hyper_ast::filter::BF

source ·
pub trait BF<T: ?Sized> {
    type Result;
    type S;
    type H: VaryHasher<Self::S>;

    const SIZE: BloomSize;

    // Required methods
    fn bulk_insert<It: Iterator<Item = Self::S>>(&mut self, it: It);
    fn check_raw(&self, item: Self::S) -> Self::Result;
}

Required Associated Types§

source

type Result

source

type S

source

type H: VaryHasher<Self::S>

Required Associated Constants§

Required Methods§

source

fn bulk_insert<It: Iterator<Item = Self::S>>(&mut self, it: It)

source

fn check_raw(&self, item: Self::S) -> Self::Result

Implementors§

source§

impl BF<[u8]> for Bloom<&'static [u8], u16>

§

type Result = BloomResult

§

type S = u8

§

type H = Pearson<16>

source§

const SIZE: BloomSize = BloomSize::B16

source§

impl BF<[u8]> for Bloom<&'static [u8], u32>

§

type Result = BloomResult

§

type S = u8

§

type H = Pearson<32>

source§

const SIZE: BloomSize = BloomSize::B32

source§

impl BF<[u8]> for Bloom<&'static [u8], u64>

§

type Result = BloomResult

§

type S = u8

§

type H = Pearson<64>

source§

const SIZE: BloomSize = BloomSize::B64

source§

impl BF<[u8]> for Bloom<&'static [u8], [u64; 2]>

§

type Result = BloomResult

§

type S = u8

§

type H = Pearson<128>

source§

const SIZE: BloomSize = BloomSize::B128

source§

impl BF<[u8]> for Bloom<&'static [u8], [u64; 4]>

§

type Result = BloomResult

§

type S = u8

§

type H = Pearson<256>

source§

const SIZE: BloomSize = BloomSize::B256

source§

impl BF<[u8]> for Bloom<&'static [u8], [u64; 8]>

§

type Result = BloomResult

§

type S = u16

§

type H = MyDefaultHasher<512>

source§

const SIZE: BloomSize = BloomSize::B512

source§

impl BF<[u8]> for Bloom<&'static [u8], [u64; 16]>

§

type Result = BloomResult

§

type S = u16

§

type H = MyDefaultHasher<1024>

source§

const SIZE: BloomSize = BloomSize::B1024

source§

impl BF<[u8]> for Bloom<&'static [u8], [u64; 32]>

§

type Result = BloomResult

§

type S = u16

§

type H = MyDefaultHasher<2048>

source§

const SIZE: BloomSize = BloomSize::B2048

source§

impl BF<[u8]> for Bloom<&'static [u8], [u64; 64]>

§

type Result = BloomResult

§

type S = u16

§

type H = MyDefaultHasher<4096>

source§

const SIZE: BloomSize = BloomSize::B4096