Struct revm::precompile::primitives::alloy_primitives::Bloom

source ·
#[repr(transparent)]
pub struct Bloom(pub FixedBytes<256>);
Expand description

Ethereum 256 byte bloom filter.

Tuple Fields§

§0: FixedBytes<256>

Implementations§

source§

impl Bloom

source

pub const ZERO: Bloom = _

Array of Zero bytes.

source

pub const fn new(bytes: [u8; 256]) -> Bloom

Wraps the given byte array in this type.

source

pub const fn with_last_byte(x: u8) -> Bloom

Creates a new byte array with the last byte set to x.

source

pub const fn repeat_byte(byte: u8) -> Bloom

Creates a new byte array where all bytes are set to byte.

source

pub const fn len_bytes() -> usize

Returns the size of this array in bytes.

source

pub fn from_slice(src: &[u8]) -> Bloom

Create a new byte array from the given slice src.

For a fallible version, use the TryFrom<&[u8]> implementation.

§Note

The given bytes are interpreted in big endian order.

§Panics

If the length of src and the number of bytes in Self do not match.

source

pub fn left_padding_from(value: &[u8]) -> Bloom

Create a new byte array from the given slice src, left-padding it with zeroes if necessary.

§Note

The given bytes are interpreted in big endian order.

§Panics

Panics if src.len() > N.

source

pub fn right_padding_from(value: &[u8]) -> Bloom

Create a new byte array from the given slice src, right-padding it with zeroes if necessary.

§Note

The given bytes are interpreted in big endian order.

§Panics

Panics if src.len() > N.

source

pub const fn into_array(self) -> [u8; 256]

Returns the inner bytes array.

source

pub fn covers(&self, b: &Bloom) -> bool

Returns true if all bits set in b are also set in self.

source

pub const fn const_eq(&self, other: &Bloom) -> bool

Compile-time equality. NOT constant-time equality.

source

pub const fn bit_and(self, rhs: Bloom) -> Bloom

Computes the bitwise AND of two FixedBytes.

source

pub const fn bit_or(self, rhs: Bloom) -> Bloom

Computes the bitwise OR of two FixedBytes.

source

pub const fn bit_xor(self, rhs: Bloom) -> Bloom

Computes the bitwise XOR of two FixedBytes.

source§

impl Bloom

source

pub const fn data(&self) -> &[u8; 256]

Returns a reference to the underlying data.

source

pub fn data_mut(&mut self) -> &mut [u8; 256]

Returns a mutable reference to the underlying data.

source

pub fn contains_input(&self, input: BloomInput<'_>) -> bool

Returns true if this bloom filter is a possible superset of the other bloom filter, admitting false positives.

Note: This method may return false positives. This is inherent to the bloom filter data structure.

source

pub const fn const_contains(self, other: Bloom) -> bool

Compile-time version of contains.

Note: This method may return false positives. This is inherent to the bloom filter data structure.

source

pub fn contains(&self, other: &Bloom) -> bool

Returns true if this bloom filter is a possible superset of the other bloom filter, admitting false positives.

Note: This method may return false positives. This is inherent to the bloom filter data structure.

source

pub fn accrue(&mut self, input: BloomInput<'_>)

Accrues the input into the bloom filter.

source

pub fn accrue_bloom(&mut self, bloom: &Bloom)

Accrues the input into the bloom filter.

source

pub fn m3_2048(&mut self, bytes: &[u8])

Specialised Bloom filter that sets three bits out of 2048, given an arbitrary byte sequence.

See Section 4.3.1 “Transaction Receipt” of the Ethereum Yellow Paper (page 6).

source

pub fn m3_2048_hashed(&mut self, hash: &FixedBytes<32>)

m3_2048 but with a pre-hashed input.

source

pub fn accrue_raw_log(&mut self, address: Address, topics: &[FixedBytes<32>])

Ingests a raw log into the bloom filter.

source

pub fn accrue_log(&mut self, log: &Log)

Ingests a log into the bloom filter.

source

pub fn contains_raw_log( &self, address: Address, topics: &[FixedBytes<32>] ) -> bool

True if the bloom filter contains a log with given address and topics.

Note: This method may return false positives. This is inherent to the bloom filter data structure.

source

pub fn contains_log(&self, log: &Log) -> bool

True if the bloom filter contains a log with given address and topics.

Note: This method may return false positives. This is inherent to the bloom filter data structure.

Methods from Deref<Target = FixedBytes<256>>§

source

pub const ZERO: FixedBytes<N> = _

source

pub fn as_slice(&self) -> &[u8]

Returns a slice containing the entire array. Equivalent to &s[..].

source

pub fn as_mut_slice(&mut self) -> &mut [u8]

Returns a mutable slice containing the entire array. Equivalent to &mut s[..].

source

pub fn covers(&self, other: &FixedBytes<N>) -> bool

Returns true if all bits set in self are also set in b.

source

pub fn const_eq(&self, other: &FixedBytes<N>) -> bool

Compile-time equality. NOT constant-time equality.

source

pub fn is_zero(&self) -> bool

Returns true if no bits are set.

source

pub fn const_is_zero(&self) -> bool

Returns true if no bits are set.

Methods from Deref<Target = [u8; N]>§

1.57.0 · source

pub fn as_slice(&self) -> &[T]

Returns a slice containing the entire array. Equivalent to &s[..].

1.57.0 · source

pub fn as_mut_slice(&mut self) -> &mut [T]

Returns a mutable slice containing the entire array. Equivalent to &mut s[..].

1.77.0 · source

pub fn each_ref(&self) -> [&T; N]

Borrows each element and returns an array of references with the same size as self.

§Example
let floats = [3.1, 2.7, -1.0];
let float_refs: [&f64; 3] = floats.each_ref();
assert_eq!(float_refs, [&3.1, &2.7, &-1.0]);

This method is particularly useful if combined with other methods, like map. This way, you can avoid moving the original array if its elements are not Copy.

let strings = ["Ferris".to_string(), "♥".to_string(), "Rust".to_string()];
let is_ascii = strings.each_ref().map(|s| s.is_ascii());
assert_eq!(is_ascii, [true, false, true]);

// We can still access the original array: it has not been moved.
assert_eq!(strings.len(), 3);
1.77.0 · source

pub fn each_mut(&mut self) -> [&mut T; N]

Borrows each element mutably and returns an array of mutable references with the same size as self.

§Example

let mut floats = [3.1, 2.7, -1.0];
let float_refs: [&mut f64; 3] = floats.each_mut();
*float_refs[0] = 0.0;
assert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);
assert_eq!(floats, [0.0, 2.7, -1.0]);
source

pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

🔬This is a nightly-only experimental API. (split_array)

Divides one array reference into two at an index.

The first will contain all indices from [0, M) (excluding the index M itself) and the second will contain all indices from [M, N) (excluding the index N itself).

§Panics

Panics if M > N.

§Examples
#![feature(split_array)]

let v = [1, 2, 3, 4, 5, 6];

{
   let (left, right) = v.split_array_ref::<0>();
   assert_eq!(left, &[]);
   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
}

{
    let (left, right) = v.split_array_ref::<2>();
    assert_eq!(left, &[1, 2]);
    assert_eq!(right, &[3, 4, 5, 6]);
}

{
    let (left, right) = v.split_array_ref::<6>();
    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
    assert_eq!(right, &[]);
}
source

pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

🔬This is a nightly-only experimental API. (split_array)

Divides one mutable array reference into two at an index.

The first will contain all indices from [0, M) (excluding the index M itself) and the second will contain all indices from [M, N) (excluding the index N itself).

§Panics

Panics if M > N.

§Examples
#![feature(split_array)]

let mut v = [1, 0, 3, 0, 5, 6];
let (left, right) = v.split_array_mut::<2>();
assert_eq!(left, &mut [1, 0][..]);
assert_eq!(right, &mut [3, 0, 5, 6]);
left[1] = 2;
right[1] = 4;
assert_eq!(v, [1, 2, 3, 4, 5, 6]);
source

pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

🔬This is a nightly-only experimental API. (split_array)

Divides one array reference into two at an index from the end.

The first will contain all indices from [0, N - M) (excluding the index N - M itself) and the second will contain all indices from [N - M, N) (excluding the index N itself).

§Panics

Panics if M > N.

§Examples
#![feature(split_array)]

let v = [1, 2, 3, 4, 5, 6];

{
   let (left, right) = v.rsplit_array_ref::<0>();
   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
   assert_eq!(right, &[]);
}

{
    let (left, right) = v.rsplit_array_ref::<2>();
    assert_eq!(left, &[1, 2, 3, 4]);
    assert_eq!(right, &[5, 6]);
}

{
    let (left, right) = v.rsplit_array_ref::<6>();
    assert_eq!(left, &[]);
    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
}
source

pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

🔬This is a nightly-only experimental API. (split_array)

Divides one mutable array reference into two at an index from the end.

The first will contain all indices from [0, N - M) (excluding the index N - M itself) and the second will contain all indices from [N - M, N) (excluding the index N itself).

§Panics

Panics if M > N.

§Examples
#![feature(split_array)]

let mut v = [1, 0, 3, 0, 5, 6];
let (left, right) = v.rsplit_array_mut::<4>();
assert_eq!(left, &mut [1, 0]);
assert_eq!(right, &mut [3, 0, 5, 6][..]);
left[1] = 2;
right[1] = 4;
assert_eq!(v, [1, 2, 3, 4, 5, 6]);
source

pub fn as_ascii(&self) -> Option<&[AsciiChar; N]>

🔬This is a nightly-only experimental API. (ascii_char)

Converts this array of bytes into a array of ASCII characters, or returns None if any of the characters is non-ASCII.

§Examples
#![feature(ascii_char)]
#![feature(const_option)]

const HEX_DIGITS: [std::ascii::Char; 16] =
    *b"0123456789abcdef".as_ascii().unwrap();

assert_eq!(HEX_DIGITS[1].as_str(), "1");
assert_eq!(HEX_DIGITS[10].as_str(), "a");
source

pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

🔬This is a nightly-only experimental API. (ascii_char)

Converts this array of bytes into a array of ASCII characters, without checking whether they’re valid.

§Safety

Every byte in the array must be in 0..=127, or else this is UB.

Trait Implementations§

source§

impl<'a> Arbitrary<'a> for Bloom

source§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Bloom, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
source§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Bloom, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
source§

impl Arbitrary for Bloom

§

type Parameters = <FixedBytes<256> as Arbitrary>::Parameters

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default.
§

type Strategy = Map<<FixedBytes<256> as Arbitrary>::Strategy, fn(_: FixedBytes<256>) -> Bloom>

The type of Strategy used to generate values of type Self.
source§

fn arbitrary() -> <Bloom as Arbitrary>::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more
source§

fn arbitrary_with( args: <Bloom as Arbitrary>::Parameters ) -> <Bloom as Arbitrary>::Strategy

Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more
source§

impl AsMut<[u8]> for Bloom

source§

fn as_mut(&mut self) -> &mut [u8]

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<[u8; 256]> for Bloom

source§

fn as_mut(&mut self) -> &mut [u8; 256]

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<FixedBytes<256>> for Bloom

source§

fn as_mut(&mut self) -> &mut FixedBytes<256>

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<[u8]> for Bloom

source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<[u8; 256]> for Bloom

source§

fn as_ref(&self) -> &[u8; 256]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<FixedBytes<256>> for Bloom

source§

fn as_ref(&self) -> &FixedBytes<256>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl BitAnd for Bloom

§

type Output = Bloom

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Bloom) -> Bloom

Performs the & operation. Read more
source§

impl BitAndAssign for Bloom

source§

fn bitand_assign(&mut self, rhs: Bloom)

Performs the &= operation. Read more
source§

impl BitOr for Bloom

§

type Output = Bloom

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Bloom) -> Bloom

Performs the | operation. Read more
source§

impl BitOrAssign for Bloom

source§

fn bitor_assign(&mut self, rhs: Bloom)

Performs the |= operation. Read more
source§

impl BitXor for Bloom

§

type Output = Bloom

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Bloom) -> Bloom

Performs the ^ operation. Read more
source§

impl BitXorAssign for Bloom

source§

fn bitxor_assign(&mut self, rhs: Bloom)

Performs the ^= operation. Read more
source§

impl Borrow<[u8]> for &Bloom

source§

fn borrow(&self) -> &[u8]

Immutably borrows from an owned value. Read more
source§

impl Borrow<[u8]> for &mut Bloom

source§

fn borrow(&self) -> &[u8]

Immutably borrows from an owned value. Read more
source§

impl Borrow<[u8]> for Bloom

source§

fn borrow(&self) -> &[u8]

Immutably borrows from an owned value. Read more
source§

impl Borrow<[u8; 256]> for &Bloom

source§

fn borrow(&self) -> &[u8; 256]

Immutably borrows from an owned value. Read more
source§

impl Borrow<[u8; 256]> for &mut Bloom

source§

fn borrow(&self) -> &[u8; 256]

Immutably borrows from an owned value. Read more
source§

impl Borrow<[u8; 256]> for Bloom

source§

fn borrow(&self) -> &[u8; 256]

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<[u8]> for &mut Bloom

source§

fn borrow_mut(&mut self) -> &mut [u8]

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<[u8]> for Bloom

source§

fn borrow_mut(&mut self) -> &mut [u8]

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<[u8; 256]> for &mut Bloom

source§

fn borrow_mut(&mut self) -> &mut [u8; 256]

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<[u8; 256]> for Bloom

source§

fn borrow_mut(&mut self) -> &mut [u8; 256]

Mutably borrows from an owned value. Read more
source§

impl Clone for Bloom

source§

fn clone(&self) -> Bloom

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Bloom

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Decodable for Bloom

source§

fn decode(buf: &mut &[u8]) -> Result<Bloom, Error>

Decodes the blob into the appropriate type. buf must be advanced past the decoded object.
source§

impl Default for Bloom

source§

fn default() -> Bloom

Returns the “default value” for a type. Read more
source§

impl Deref for Bloom

§

type Target = FixedBytes<256>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<Bloom as Deref>::Target

Dereferences the value.
source§

impl DerefMut for Bloom

source§

fn deref_mut(&mut self) -> &mut <Bloom as Deref>::Target

Mutably dereferences the value.
source§

impl<'de> Deserialize<'de> for Bloom

source§

fn deserialize<D>( deserializer: D ) -> Result<Bloom, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Bloom

source§

fn fmt( &self, _derive_more_display_formatter: &mut Formatter<'_> ) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Encodable for Bloom

source§

fn length(&self) -> usize

Returns the length of the encoding of this type in bytes. Read more
source§

fn encode(&self, out: &mut dyn BufMut)

Encodes the type into the out buffer.
source§

impl<'a> Extend<&'a (Address, LogData)> for Bloom

source§

fn extend<T>(&mut self, iter: T)
where T: IntoIterator<Item = &'a (Address, LogData)>,

Extends a collection with the contents of an iterator. Read more
source§

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)

🔬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<'a, 'b> Extend<&'a BloomInput<'b>> for Bloom

source§

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)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

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<'a> Extend<&'a Log> for Bloom

source§

fn extend<T>(&mut self, logs: T)
where T: IntoIterator<Item = &'a Log>,

Extends a collection with the contents of an iterator. Read more
source§

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)

🔬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<'a> From<&'a [u8; 256]> for &'a Bloom

source§

fn from(value: &'a [u8; 256]) -> &'a Bloom

Converts to this type from the input type.
source§

impl<'a> From<&'a [u8; 256]> for Bloom

source§

fn from(value: &'a [u8; 256]) -> Bloom

Converts to this type from the input type.
source§

impl<'a> From<&'a Bloom> for &'a [u8; 256]

source§

fn from(value: &'a Bloom) -> &'a [u8; 256]

Converts to this type from the input type.
source§

impl<'a> From<&'a mut [u8; 256]> for &'a Bloom

source§

fn from(value: &'a mut [u8; 256]) -> &'a Bloom

Converts to this type from the input type.
source§

impl<'a> From<&'a mut [u8; 256]> for &'a mut Bloom

source§

fn from(value: &'a mut [u8; 256]) -> &'a mut Bloom

Converts to this type from the input type.
source§

impl<'a> From<&'a mut [u8; 256]> for Bloom

source§

fn from(value: &'a mut [u8; 256]) -> Bloom

Converts to this type from the input type.
source§

impl<'a> From<&'a mut Bloom> for &'a [u8; 256]

source§

fn from(value: &'a mut Bloom) -> &'a [u8; 256]

Converts to this type from the input type.
source§

impl<'a> From<&'a mut Bloom> for &'a mut [u8; 256]

source§

fn from(value: &'a mut Bloom) -> &'a mut [u8; 256]

Converts to this type from the input type.
source§

impl From<[u8; 256]> for Bloom

source§

fn from(value: [u8; 256]) -> Bloom

Converts to this type from the input type.
source§

impl From<Bloom> for [u8; 256]

source§

fn from(value: Bloom) -> [u8; 256]

Converts to this type from the input type.
source§

impl From<Bloom> for FixedBytes<256>

source§

fn from(original: Bloom) -> FixedBytes<256>

Converts to this type from the input type.
source§

impl From<BloomInput<'_>> for Bloom

source§

fn from(input: BloomInput<'_>) -> Bloom

Converts to this type from the input type.
source§

impl From<FixedBytes<256>> for Bloom

source§

fn from(original: FixedBytes<256>) -> Bloom

Converts to this type from the input type.
source§

impl FromHex for Bloom

§

type Error = FromHexError

source§

fn from_hex<T>(hex: T) -> Result<Bloom, <Bloom as FromHex>::Error>
where T: AsRef<[u8]>,

Creates an instance of type Self from the given hex string, or fails with a custom error type. Read more
source§

impl<'a> FromIterator<&'a (Address, LogData)> for Bloom

source§

fn from_iter<T>(iter: T) -> Bloom
where T: IntoIterator<Item = &'a (Address, LogData)>,

Creates a value from an iterator. Read more
source§

impl<'a, 'b> FromIterator<&'a BloomInput<'b>> for Bloom

source§

fn from_iter<T>(inputs: T) -> Bloom
where T: IntoIterator<Item = &'a BloomInput<'b>>,

Creates a value from an iterator. Read more
source§

impl<'a> FromIterator<&'a Log> for Bloom

source§

fn from_iter<T>(logs: T) -> Bloom
where T: IntoIterator<Item = &'a Log>,

Creates a value from an iterator. Read more
source§

impl FromStr for Bloom

§

type Err = <FixedBytes<256> as FromStr>::Err

The associated error which can be returned from parsing.
source§

fn from_str(src: &str) -> Result<Bloom, <Bloom as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Bloom

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<__IdxT> Index<__IdxT> for Bloom
where FixedBytes<256>: Index<__IdxT>,

§

type Output = <FixedBytes<256> as Index<__IdxT>>::Output

The returned type after indexing.
source§

fn index(&self, idx: __IdxT) -> &<Bloom as Index<__IdxT>>::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<__IdxT> IndexMut<__IdxT> for Bloom
where FixedBytes<256>: IndexMut<__IdxT>,

source§

fn index_mut(&mut self, idx: __IdxT) -> &mut <Bloom as Index<__IdxT>>::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime Bloom

§

type Item = <&'__deriveMoreLifetime FixedBytes<256> as IntoIterator>::Item

The type of the elements being iterated over.
§

type IntoIter = <&'__deriveMoreLifetime FixedBytes<256> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <&'__deriveMoreLifetime Bloom as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime mut Bloom

§

type Item = <&'__deriveMoreLifetime mut FixedBytes<256> as IntoIterator>::Item

The type of the elements being iterated over.
§

type IntoIter = <&'__deriveMoreLifetime mut FixedBytes<256> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter( self ) -> <&'__deriveMoreLifetime mut Bloom as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl IntoIterator for Bloom

§

type Item = <FixedBytes<256> as IntoIterator>::Item

The type of the elements being iterated over.
§

type IntoIter = <FixedBytes<256> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <Bloom as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for Bloom

source§

fn fmt( &self, _derive_more_display_formatter: &mut Formatter<'_> ) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl MaxEncodedLenAssoc for Bloom

source§

const LEN: usize = 259usize

The maximum length.
source§

impl Ord for Bloom

source§

fn cmp(&self, other: &Bloom) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<&[u8]> for Bloom

source§

fn eq(&self, other: &&[u8]) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<&[u8; 256]> for Bloom

source§

fn eq(&self, other: &&[u8; 256]) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<&Bloom> for [u8]

source§

fn eq(&self, other: &&Bloom) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<&Bloom> for [u8; 256]

source§

fn eq(&self, other: &&Bloom) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<[u8]> for &Bloom

source§

fn eq(&self, other: &[u8]) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<[u8]> for Bloom

source§

fn eq(&self, other: &[u8]) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<[u8; 256]> for &Bloom

source§

fn eq(&self, other: &[u8; 256]) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<[u8; 256]> for Bloom

source§

fn eq(&self, other: &[u8; 256]) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Bloom> for &[u8]

source§

fn eq(&self, other: &Bloom) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Bloom> for &[u8; 256]

source§

fn eq(&self, other: &Bloom) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Bloom> for [u8]

source§

fn eq(&self, other: &Bloom) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Bloom> for [u8; 256]

source§

fn eq(&self, other: &Bloom) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Bloom

source§

fn eq(&self, other: &Bloom) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<&[u8]> for Bloom

source§

fn partial_cmp(&self, other: &&[u8]) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<&Bloom> for [u8]

source§

fn partial_cmp(&self, other: &&Bloom) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<[u8]> for &Bloom

source§

fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<[u8]> for Bloom

source§

fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Bloom> for &[u8]

source§

fn partial_cmp(&self, other: &Bloom) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Bloom> for [u8]

source§

fn partial_cmp(&self, other: &Bloom) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd for Bloom

source§

fn partial_cmp(&self, other: &Bloom) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Bloom

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'a> TryFrom<&'a [u8]> for &'a Bloom

§

type Error = TryFromSliceError

The type returned in the event of a conversion error.
source§

fn try_from( slice: &'a [u8] ) -> Result<&'a Bloom, <&'a Bloom as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl TryFrom<&[u8]> for Bloom

§

type Error = TryFromSliceError

The type returned in the event of a conversion error.
source§

fn try_from(slice: &[u8]) -> Result<Bloom, <Bloom as TryFrom<&[u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a mut [u8]> for &'a mut Bloom

§

type Error = TryFromSliceError

The type returned in the event of a conversion error.
source§

fn try_from( slice: &'a mut [u8] ) -> Result<&'a mut Bloom, <&'a mut Bloom as TryFrom<&'a mut [u8]>>::Error>

Performs the conversion.
source§

impl TryFrom<&mut [u8]> for Bloom

§

type Error = TryFromSliceError

The type returned in the event of a conversion error.
source§

fn try_from( slice: &mut [u8] ) -> Result<Bloom, <Bloom as TryFrom<&mut [u8]>>::Error>

Performs the conversion.
source§

impl UpperHex for Bloom

source§

fn fmt( &self, _derive_more_display_formatter: &mut Formatter<'_> ) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Copy for Bloom

source§

impl Eq for Bloom

source§

impl MaxEncodedLen<alloy_primitives::::bits::bloom::{impl#93}::{constant#0}> for Bloom

source§

impl StructuralPartialEq for Bloom

Auto Trait Implementations§

§

impl Freeze for Bloom

§

impl RefUnwindSafe for Bloom

§

impl Send for Bloom

§

impl Sync for Bloom

§

impl Unpin for Bloom

§

impl UnwindSafe for Bloom

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

source§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where O: BitOrder,

Views self as an immutable bit-slice region with the O ordering.
source§

fn try_as_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
where O: BitOrder,

Attempts to view self as an immutable bit-slice region with the O ordering. Read more
source§

impl<T, U> AsByteSlice<T> for U
where T: ToByteSlice, U: AsRef<[T]> + ?Sized,

source§

fn as_byte_slice(&self) -> &[u8]

source§

impl<A, T> AsMutBits<T> for A
where A: AsMut<[T]>, T: BitStore,

source§

fn as_mut_bits<O>(&mut self) -> &mut BitSlice<T, O>
where O: BitOrder,

Views self as a mutable bit-slice region with the O ordering.
source§

fn try_as_mut_bits<O>(&mut self) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
where O: BitOrder,

Attempts to view self as a mutable bit-slice region with the O ordering. Read more
source§

impl<T, U> AsMutByteSlice<T> for U
where T: ToMutByteSlice, U: AsMut<[T]> + ?Sized,

source§

fn as_mut_byte_slice(&mut self) -> &mut [u8]

source§

impl<U> AsMutSliceOf for U
where U: AsMut<[u8]> + ?Sized,

source§

fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>
where T: FromByteSlice,

source§

impl<U> AsSliceOf for U
where U: AsRef<[u8]> + ?Sized,

source§

fn as_slice_of<T>(&self) -> Result<&[T], Error>
where T: FromByteSlice,

source§

impl<I> BidiIterator for I

source§

fn bidi(self, cond: bool) -> Bidi<Self::IntoIter>

Conditionally reverses the direction of iteration. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pipe for T
where T: ?Sized,

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToHex for T
where T: AsRef<[u8]>,

source§

fn encode_hex<U>(&self) -> U
where U: FromIterator<char>,

👎Deprecated: use ToHexExt instead
Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca).
source§

fn encode_hex_upper<U>(&self) -> U
where U: FromIterator<char>,

👎Deprecated: use ToHexExt instead
Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA).
source§

impl<T> ToHex for T
where T: AsRef<[u8]>,

source§

fn encode_hex<U>(&self) -> U
where U: FromIterator<char>,

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca)
source§

fn encode_hex_upper<U>(&self) -> U
where U: FromIterator<char>,

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA)
source§

impl<T> ToHexExt for T
where T: AsRef<[u8]>,

source§

fn encode_hex(&self) -> String

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca).
source§

fn encode_hex_upper(&self) -> String

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA).
source§

fn encode_hex_with_prefix(&self) -> String

Encode the hex strict representing self into the result with prefix 0x. Lower case letters are used (e.g. 0xf9b4ca).
source§

fn encode_hex_upper_with_prefix(&self) -> String

Encode the hex strict representing self into the result with prefix 0X. Upper case letters are used (e.g. 0xF9B4CA).
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> JsonSchemaMaybe for T

source§

impl<T> NumBytes for T
where T: Debug + AsRef<[u8]> + AsMut<[u8]> + PartialEq + Eq + PartialOrd + Ord + Hash + Borrow<[u8]> + BorrowMut<[u8]> + ?Sized,