Struct solana_runtime::bloom::Bloom [−][src]
pub struct Bloom<T: BloomHashIndex> { pub keys: Vec<u64>, pub bits: BitVec<u64>, // some fields omitted }
Fields
keys: Vec<u64>bits: BitVec<u64>Implementations
create filter optimal for num size given the FALSE_RATE
the keys are randomized for picking data out of a collision resistant hash of size
keysize bytes
https://hur.st/bloomfilter/
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Bloom<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for Bloom<T> where
T: UnwindSafe, Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V