pub enum BloomInput<'a> {
Raw(&'a [u8]),
Hash(B256),
}
Expand description
Input to the Bloom::accrue
method.
Variants§
Implementations§
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 copy 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: IntoIterator<Item = &'a BloomInput<'b>>>(&mut self, inputs: T)
fn extend<T: IntoIterator<Item = &'a BloomInput<'b>>>(&mut self, inputs: T)
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<'_>) -> Self
fn from(input: BloomInput<'_>) -> Self
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: IntoIterator<Item = &'a BloomInput<'b>>>(inputs: T) -> Self
fn from_iter<T: IntoIterator<Item = &'a BloomInput<'b>>>(inputs: T) -> Self
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> 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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes
Size for each variant:
Raw
: 23 bytesHash
: 32 bytes