pub enum BloomInput<'a> {
Raw(&'a [u8]),
Hash(FixedBytes<32>),
}Expand description
Input to the Bloom::accrue method.
Variants§
Implementations§
Source§impl BloomInput<'_>
impl BloomInput<'_>
Sourcepub fn into_hash(self) -> FixedBytes<32>
pub fn into_hash(self) -> FixedBytes<32>
Consume the input, converting it to the hash.
Trait Implementations§
Source§impl<'a> Clone for BloomInput<'a>
impl<'a> Clone for BloomInput<'a>
Source§fn clone(&self) -> BloomInput<'a>
fn clone(&self) -> BloomInput<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for BloomInput<'a>
impl<'a> Debug for BloomInput<'a>
Source§impl<'a, 'b> Extend<&'a BloomInput<'b>> for Bloom
impl<'a, 'b> Extend<&'a BloomInput<'b>> for Bloom
Source§fn extend<T>(&mut self, inputs: T)where
T: IntoIterator<Item = &'a BloomInput<'b>>,
fn extend<T>(&mut self, inputs: T)where
T: IntoIterator<Item = &'a BloomInput<'b>>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<BloomInput<'_>> for Bloom
impl From<BloomInput<'_>> for Bloom
Source§fn from(input: BloomInput<'_>) -> Bloom
fn from(input: BloomInput<'_>) -> Bloom
Converts to this type from the input type.
Source§impl<'a, 'b> FromIterator<&'a BloomInput<'b>> for Bloom
impl<'a, 'b> FromIterator<&'a BloomInput<'b>> for Bloom
Source§fn from_iter<T>(inputs: T) -> Bloomwhere
T: IntoIterator<Item = &'a BloomInput<'b>>,
fn from_iter<T>(inputs: T) -> Bloomwhere
T: IntoIterator<Item = &'a BloomInput<'b>>,
Creates a value from an iterator. Read more
impl<'a> Copy for BloomInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for BloomInput<'a>
impl<'a> RefUnwindSafe for BloomInput<'a>
impl<'a> Send for BloomInput<'a>
impl<'a> Sync for BloomInput<'a>
impl<'a> Unpin for BloomInput<'a>
impl<'a> UnsafeUnpin for BloomInput<'a>
impl<'a> UnwindSafe for BloomInput<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more