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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)