Struct brontes_pricing::types::PairWithFirstPoolHop
source · #[repr(transparent)]pub struct PairWithFirstPoolHop(pub FixedBytes<80>);
Tuple Fields§
§0: FixedBytes<80>
Implementations§
source§impl PairWithFirstPoolHop
impl PairWithFirstPoolHop
sourcepub const fn with_last_byte(x: u8) -> Self
pub const fn with_last_byte(x: u8) -> Self
Creates a new byte array with the last byte set to x
.
sourcepub const fn repeat_byte(byte: u8) -> Self
pub const fn repeat_byte(byte: u8) -> Self
Creates a new byte array where all bytes are set to byte
.
sourcepub fn random() -> Self
pub fn random() -> Self
Instantiates a new fixed byte array with cryptographically random content.
§Panics
Panics if the underlying call to getrandom_uninit
fails.
sourcepub fn try_random() -> Result<Self, Error>
pub fn try_random() -> Result<Self, Error>
Tries to create a new fixed byte array with cryptographically random content.
§Errors
This function only propagates the error from the underlying call to
getrandom_uninit
.
sourcepub fn randomize(&mut self)
pub fn randomize(&mut self)
Fills this fixed byte array with cryptographically random content.
§Panics
Panics if the underlying call to getrandom_uninit
fails.
sourcepub fn try_randomize(&mut self) -> Result<(), Error>
pub fn try_randomize(&mut self) -> Result<(), Error>
Tries to fill this fixed byte array with cryptographically random content.
§Errors
This function only propagates the error from the underlying call to
getrandom_uninit
.
sourcepub fn random_with<R: Rng + ?Sized>(rng: &mut R) -> Self
pub fn random_with<R: Rng + ?Sized>(rng: &mut R) -> Self
Creates a new fixed byte array with the given random number generator.
sourcepub fn randomize_with<R: Rng + ?Sized>(&mut self, rng: &mut R)
pub fn randomize_with<R: Rng + ?Sized>(&mut self, rng: &mut R)
Fills this fixed byte array with the given random number generator.
sourcepub fn from_slice(src: &[u8]) -> Self
pub fn from_slice(src: &[u8]) -> Self
sourcepub fn left_padding_from(value: &[u8]) -> Self
pub fn left_padding_from(value: &[u8]) -> Self
sourcepub fn right_padding_from(value: &[u8]) -> Self
pub fn right_padding_from(value: &[u8]) -> Self
sourcepub const fn into_array(self) -> [u8; 80]
pub const fn into_array(self) -> [u8; 80]
Returns the inner bytes array.
Methods from Deref<Target = FixedBytes<80>>§
pub const ZERO: FixedBytes<N> = _
pub fn randomize(&mut self)
pub fn randomize(&mut self)
Fills this [FixedBytes
] with cryptographically random content.
§Panics
Panics if the underlying call to
getrandom_uninit
fails.
pub fn try_randomize(&mut self) -> Result<(), Error>
pub fn try_randomize(&mut self) -> Result<(), Error>
Tries to fill this [FixedBytes
] with cryptographically random content.
§Errors
This function only propagates the error from the underlying call to
getrandom_uninit
.
pub fn randomize_with<R>(&mut self, rng: &mut R)
pub fn randomize_with<R>(&mut self, rng: &mut R)
Fills this [FixedBytes
] with the given random number generator.
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Returns a mutable slice containing the entire array. Equivalent to
&mut s[..]
.
pub fn covers(&self, other: &FixedBytes<N>) -> bool
pub fn covers(&self, other: &FixedBytes<N>) -> bool
Returns true
if all bits set in self
are also set in b
.
pub fn const_eq(&self, other: &FixedBytes<N>) -> bool
pub fn const_eq(&self, other: &FixedBytes<N>) -> bool
Compile-time equality. NOT constant-time equality.
pub fn const_is_zero(&self) -> bool
pub fn const_is_zero(&self) -> bool
Returns true
if no bits are set.
Methods from Deref<Target = [u8; N]>§
sourcepub fn as_ascii(&self) -> Option<&[AsciiChar; N]>
🔬This is a nightly-only experimental API. (ascii_char
)
pub fn as_ascii(&self) -> Option<&[AsciiChar; N]>
ascii_char
)Converts this array of bytes into an 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");
sourcepub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]
🔬This is a nightly-only experimental API. (ascii_char
)
pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]
ascii_char
)Converts this array of bytes into an 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.
1.57.0 · sourcepub fn as_slice(&self) -> &[T]
pub fn as_slice(&self) -> &[T]
Returns a slice containing the entire array. Equivalent to &s[..]
.
1.57.0 · sourcepub fn as_mut_slice(&mut self) -> &mut [T]
pub fn as_mut_slice(&mut self) -> &mut [T]
Returns a mutable slice containing the entire array. Equivalent to
&mut s[..]
.
1.77.0 · sourcepub fn each_ref(&self) -> [&T; N]
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 · sourcepub fn each_mut(&mut self) -> [&mut T; N]
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]);
sourcepub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])
🔬This is a nightly-only experimental API. (split_array
)
pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])
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, &[]);
}
sourcepub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])
🔬This is a nightly-only experimental API. (split_array
)
pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])
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]);
sourcepub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])
🔬This is a nightly-only experimental API. (split_array
)
pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])
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]);
}
sourcepub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])
🔬This is a nightly-only experimental API. (split_array
)
pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])
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]);
Trait Implementations§
source§impl<'a> Arbitrary<'a> for PairWithFirstPoolHop
impl<'a> Arbitrary<'a> for PairWithFirstPoolHop
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self>
Self
from the entirety of the given
unstructured data. Read moresource§impl Arbitrary for PairWithFirstPoolHop
impl Arbitrary for PairWithFirstPoolHop
§type Parameters = <FixedBytes<80> as Arbitrary>::Parameters
type Parameters = <FixedBytes<80> as Arbitrary>::Parameters
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<<FixedBytes<80> as Arbitrary>::Strategy, fn(_: FixedBytes<80>) -> PairWithFirstPoolHop>
type Strategy = Map<<FixedBytes<80> as Arbitrary>::Strategy, fn(_: FixedBytes<80>) -> PairWithFirstPoolHop>
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
source§impl AsMut<[u8]> for PairWithFirstPoolHop
impl AsMut<[u8]> for PairWithFirstPoolHop
source§impl AsMut<FixedBytes<80>> for PairWithFirstPoolHop
impl AsMut<FixedBytes<80>> for PairWithFirstPoolHop
source§impl AsRef<[u8]> for PairWithFirstPoolHop
impl AsRef<[u8]> for PairWithFirstPoolHop
source§impl AsRef<FixedBytes<80>> for PairWithFirstPoolHop
impl AsRef<FixedBytes<80>> for PairWithFirstPoolHop
source§impl BitAnd for PairWithFirstPoolHop
impl BitAnd for PairWithFirstPoolHop
§type Output = PairWithFirstPoolHop
type Output = PairWithFirstPoolHop
&
operator.source§fn bitand(self, rhs: PairWithFirstPoolHop) -> PairWithFirstPoolHop
fn bitand(self, rhs: PairWithFirstPoolHop) -> PairWithFirstPoolHop
&
operation. Read moresource§impl BitAndAssign for PairWithFirstPoolHop
impl BitAndAssign for PairWithFirstPoolHop
source§fn bitand_assign(&mut self, rhs: PairWithFirstPoolHop)
fn bitand_assign(&mut self, rhs: PairWithFirstPoolHop)
&=
operation. Read moresource§impl BitOr for PairWithFirstPoolHop
impl BitOr for PairWithFirstPoolHop
§type Output = PairWithFirstPoolHop
type Output = PairWithFirstPoolHop
|
operator.source§fn bitor(self, rhs: PairWithFirstPoolHop) -> PairWithFirstPoolHop
fn bitor(self, rhs: PairWithFirstPoolHop) -> PairWithFirstPoolHop
|
operation. Read moresource§impl BitOrAssign for PairWithFirstPoolHop
impl BitOrAssign for PairWithFirstPoolHop
source§fn bitor_assign(&mut self, rhs: PairWithFirstPoolHop)
fn bitor_assign(&mut self, rhs: PairWithFirstPoolHop)
|=
operation. Read moresource§impl BitXor for PairWithFirstPoolHop
impl BitXor for PairWithFirstPoolHop
§type Output = PairWithFirstPoolHop
type Output = PairWithFirstPoolHop
^
operator.source§fn bitxor(self, rhs: PairWithFirstPoolHop) -> PairWithFirstPoolHop
fn bitxor(self, rhs: PairWithFirstPoolHop) -> PairWithFirstPoolHop
^
operation. Read moresource§impl BitXorAssign for PairWithFirstPoolHop
impl BitXorAssign for PairWithFirstPoolHop
source§fn bitxor_assign(&mut self, rhs: PairWithFirstPoolHop)
fn bitxor_assign(&mut self, rhs: PairWithFirstPoolHop)
^=
operation. Read moresource§impl Borrow<[u8]> for &PairWithFirstPoolHop
impl Borrow<[u8]> for &PairWithFirstPoolHop
source§impl Borrow<[u8]> for &mut PairWithFirstPoolHop
impl Borrow<[u8]> for &mut PairWithFirstPoolHop
source§impl Borrow<[u8]> for PairWithFirstPoolHop
impl Borrow<[u8]> for PairWithFirstPoolHop
source§impl BorrowMut<[u8]> for &mut PairWithFirstPoolHop
impl BorrowMut<[u8]> for &mut PairWithFirstPoolHop
source§impl BorrowMut<[u8]> for PairWithFirstPoolHop
impl BorrowMut<[u8]> for PairWithFirstPoolHop
source§impl Clone for PairWithFirstPoolHop
impl Clone for PairWithFirstPoolHop
source§fn clone(&self) -> PairWithFirstPoolHop
fn clone(&self) -> PairWithFirstPoolHop
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PairWithFirstPoolHop
impl Debug for PairWithFirstPoolHop
source§impl Decodable for PairWithFirstPoolHop
impl Decodable for PairWithFirstPoolHop
source§impl Default for PairWithFirstPoolHop
impl Default for PairWithFirstPoolHop
source§fn default() -> PairWithFirstPoolHop
fn default() -> PairWithFirstPoolHop
source§impl Deref for PairWithFirstPoolHop
impl Deref for PairWithFirstPoolHop
source§impl DerefMut for PairWithFirstPoolHop
impl DerefMut for PairWithFirstPoolHop
source§impl<'de> Deserialize<'de> for PairWithFirstPoolHop
impl<'de> Deserialize<'de> for PairWithFirstPoolHop
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl Display for PairWithFirstPoolHop
impl Display for PairWithFirstPoolHop
source§impl Distribution<PairWithFirstPoolHop> for Standard
impl Distribution<PairWithFirstPoolHop> for Standard
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> PairWithFirstPoolHop
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> PairWithFirstPoolHop
T
, using rng
as the source of randomness.source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
T
, using rng
as
the source of randomness. Read moresource§impl Encodable for PairWithFirstPoolHop
impl Encodable for PairWithFirstPoolHop
source§impl From<FixedBytes<80>> for PairWithFirstPoolHop
impl From<FixedBytes<80>> for PairWithFirstPoolHop
source§fn from(original: FixedBytes<80>) -> PairWithFirstPoolHop
fn from(original: FixedBytes<80>) -> PairWithFirstPoolHop
source§impl From<PairWithFirstPoolHop> for [u8; 80]
impl From<PairWithFirstPoolHop> for [u8; 80]
source§fn from(value: PairWithFirstPoolHop) -> Self
fn from(value: PairWithFirstPoolHop) -> Self
source§impl From<PairWithFirstPoolHop> for FixedBytes<80>
impl From<PairWithFirstPoolHop> for FixedBytes<80>
source§fn from(original: PairWithFirstPoolHop) -> Self
fn from(original: PairWithFirstPoolHop) -> Self
source§impl FromHex for PairWithFirstPoolHop
impl FromHex for PairWithFirstPoolHop
source§impl FromStr for PairWithFirstPoolHop
impl FromStr for PairWithFirstPoolHop
source§impl Hash for PairWithFirstPoolHop
impl Hash for PairWithFirstPoolHop
source§impl<__IdxT> Index<__IdxT> for PairWithFirstPoolHopwhere
FixedBytes<80>: Index<__IdxT>,
impl<__IdxT> Index<__IdxT> for PairWithFirstPoolHopwhere
FixedBytes<80>: Index<__IdxT>,
source§impl<__IdxT> IndexMut<__IdxT> for PairWithFirstPoolHopwhere
FixedBytes<80>: IndexMut<__IdxT>,
impl<__IdxT> IndexMut<__IdxT> for PairWithFirstPoolHopwhere
FixedBytes<80>: IndexMut<__IdxT>,
source§impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime PairWithFirstPoolHop
impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime PairWithFirstPoolHop
§type Item = <&'__deriveMoreLifetime FixedBytes<80> as IntoIterator>::Item
type Item = <&'__deriveMoreLifetime FixedBytes<80> as IntoIterator>::Item
§type IntoIter = <&'__deriveMoreLifetime FixedBytes<80> as IntoIterator>::IntoIter
type IntoIter = <&'__deriveMoreLifetime FixedBytes<80> as IntoIterator>::IntoIter
source§impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime mut PairWithFirstPoolHop
impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime mut PairWithFirstPoolHop
§type Item = <&'__deriveMoreLifetime mut FixedBytes<80> as IntoIterator>::Item
type Item = <&'__deriveMoreLifetime mut FixedBytes<80> as IntoIterator>::Item
§type IntoIter = <&'__deriveMoreLifetime mut FixedBytes<80> as IntoIterator>::IntoIter
type IntoIter = <&'__deriveMoreLifetime mut FixedBytes<80> as IntoIterator>::IntoIter
source§impl IntoIterator for PairWithFirstPoolHop
impl IntoIterator for PairWithFirstPoolHop
source§impl LowerHex for PairWithFirstPoolHop
impl LowerHex for PairWithFirstPoolHop
source§impl MaxEncodedLenAssoc for PairWithFirstPoolHop
impl MaxEncodedLenAssoc for PairWithFirstPoolHop
source§impl Not for PairWithFirstPoolHop
impl Not for PairWithFirstPoolHop
§type Output = PairWithFirstPoolHop
type Output = PairWithFirstPoolHop
!
operator.source§fn not(self) -> PairWithFirstPoolHop
fn not(self) -> PairWithFirstPoolHop
!
operation. Read moresource§impl Ord for PairWithFirstPoolHop
impl Ord for PairWithFirstPoolHop
source§fn cmp(&self, other: &PairWithFirstPoolHop) -> Ordering
fn cmp(&self, other: &PairWithFirstPoolHop) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq<&[u8]> for PairWithFirstPoolHop
impl PartialEq<&[u8]> for PairWithFirstPoolHop
source§impl PartialEq<&PairWithFirstPoolHop> for [u8]
impl PartialEq<&PairWithFirstPoolHop> for [u8]
source§impl PartialEq<[u8]> for &PairWithFirstPoolHop
impl PartialEq<[u8]> for &PairWithFirstPoolHop
source§impl PartialEq<[u8]> for PairWithFirstPoolHop
impl PartialEq<[u8]> for PairWithFirstPoolHop
source§impl PartialEq<PairWithFirstPoolHop> for &[u8]
impl PartialEq<PairWithFirstPoolHop> for &[u8]
source§impl PartialEq<PairWithFirstPoolHop> for [u8]
impl PartialEq<PairWithFirstPoolHop> for [u8]
source§impl PartialEq for PairWithFirstPoolHop
impl PartialEq for PairWithFirstPoolHop
source§impl PartialOrd<&[u8]> for PairWithFirstPoolHop
impl PartialOrd<&[u8]> for PairWithFirstPoolHop
source§impl PartialOrd<&PairWithFirstPoolHop> for [u8]
impl PartialOrd<&PairWithFirstPoolHop> for [u8]
source§impl PartialOrd<[u8]> for &PairWithFirstPoolHop
impl PartialOrd<[u8]> for &PairWithFirstPoolHop
source§impl PartialOrd<[u8]> for PairWithFirstPoolHop
impl PartialOrd<[u8]> for PairWithFirstPoolHop
source§impl PartialOrd<PairWithFirstPoolHop> for &[u8]
impl PartialOrd<PairWithFirstPoolHop> for &[u8]
source§impl PartialOrd<PairWithFirstPoolHop> for [u8]
impl PartialOrd<PairWithFirstPoolHop> for [u8]
source§impl PartialOrd for PairWithFirstPoolHop
impl PartialOrd for PairWithFirstPoolHop
source§impl Serialize for PairWithFirstPoolHop
impl Serialize for PairWithFirstPoolHop
source§impl<'a> TryFrom<&'a [u8]> for &'a PairWithFirstPoolHop
impl<'a> TryFrom<&'a [u8]> for &'a PairWithFirstPoolHop
§type Error = TryFromSliceError
type Error = TryFromSliceError
source§impl TryFrom<&[u8]> for PairWithFirstPoolHop
impl TryFrom<&[u8]> for PairWithFirstPoolHop
source§impl<'a> TryFrom<&'a mut [u8]> for &'a mut PairWithFirstPoolHop
impl<'a> TryFrom<&'a mut [u8]> for &'a mut PairWithFirstPoolHop
§type Error = TryFromSliceError
type Error = TryFromSliceError
source§impl TryFrom<&mut [u8]> for PairWithFirstPoolHop
impl TryFrom<&mut [u8]> for PairWithFirstPoolHop
source§impl UpperHex for PairWithFirstPoolHop
impl UpperHex for PairWithFirstPoolHop
impl Copy for PairWithFirstPoolHop
impl Eq for PairWithFirstPoolHop
impl MaxEncodedLen<{ $len }> for PairWithFirstPoolHop
impl StructuralPartialEq for PairWithFirstPoolHop
Auto Trait Implementations§
impl Freeze for PairWithFirstPoolHop
impl RefUnwindSafe for PairWithFirstPoolHop
impl Send for PairWithFirstPoolHop
impl Sync for PairWithFirstPoolHop
impl Unpin for PairWithFirstPoolHop
impl UnwindSafe for PairWithFirstPoolHop
Blanket Implementations§
source§impl<T, O> ActionComparison<O> for Twhere
T: SubordinateAction<O>,
O: ActionCmp<T>,
impl<T, O> ActionComparison<O> for Twhere
T: SubordinateAction<O>,
O: ActionCmp<T>,
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
§impl<A, T> AsBits<T> for A
impl<A, T> AsBits<T> for A
§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8] ⓘ
§impl<A, T> AsMutBits<T> for A
impl<A, T> AsMutBits<T> for A
§fn as_mut_bits<O>(&mut self) -> &mut BitSlice<T, O> ⓘwhere
O: BitOrder,
fn as_mut_bits<O>(&mut self) -> &mut BitSlice<T, O> ⓘwhere
O: BitOrder,
self
as a mutable bit-slice region with the O
ordering.§fn try_as_mut_bits<O>(&mut self) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>where
O: BitOrder,
fn try_as_mut_bits<O>(&mut self) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>where
O: BitOrder,
§impl<T, U> AsMutByteSlice<T> for U
impl<T, U> AsMutByteSlice<T> for U
fn as_mut_byte_slice(&mut self) -> &mut [u8] ⓘ
§impl<U> AsMutSliceOf for U
impl<U> AsMutSliceOf for U
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
§impl<I> BidiIterator for I
impl<I> BidiIterator for I
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
fn exact_from(value: T) -> U
§impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
fn exact_into(self) -> U
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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<A> IntoZip<ZipPadded1<<A as IntoIterator>::IntoIter>> for Awhere
A: IntoIterator,
impl<A> IntoZip<ZipPadded1<<A as IntoIterator>::IntoIter>> for Awhere
A: IntoIterator,
fn into_zip(self) -> ZipPadded1<<A as IntoIterator>::IntoIter>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
§impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
fn saturating_into(self) -> U
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<S> SliceExt for S
impl<S> SliceExt for S
§fn utf8char_indices(&self) -> Utf8CharDecoder<'_>
fn utf8char_indices(&self) -> Utf8CharDecoder<'_>
source§impl<T, O> SubordinateAction<O> for Twhere
O: ActionCmp<T>,
impl<T, O> SubordinateAction<O> for Twhere
O: ActionCmp<T>,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.§impl<T> ToDebugString for Twhere
T: Debug,
impl<T> ToDebugString for Twhere
T: Debug,
§fn to_debug_string(&self) -> String
fn to_debug_string(&self) -> String
source§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
self
into the result. Upper case
letters are used (e.g. F9B4CA
)§impl<T> ToHex for T
impl<T> ToHex for T
§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
ToHexExt
insteadself
into the result.
Lower case letters are used (e.g. f9b4ca
).§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
ToHexExt
insteadself
into the result.
Upper case letters are used (e.g. F9B4CA
).§impl<T> ToHexExt for T
impl<T> ToHexExt for T
§fn encode_hex(&self) -> String
fn encode_hex(&self) -> String
self
into the result.
Lower case letters are used (e.g. f9b4ca
).§fn encode_hex_upper(&self) -> String
fn encode_hex_upper(&self) -> String
self
into the result.
Upper case letters are used (e.g. F9B4CA
).§fn encode_hex_with_prefix(&self) -> String
fn encode_hex_with_prefix(&self) -> String
self
into the result with prefix 0x
.
Lower case letters are used (e.g. 0xf9b4ca
).§fn encode_hex_upper_with_prefix(&self) -> String
fn encode_hex_upper_with_prefix(&self) -> String
self
into the result with prefix 0X
.
Upper case letters are used (e.g. 0xF9B4CA
).§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
§impl<T, U> WrappingInto<U> for Twhere
U: WrappingFrom<T>,
impl<T, U> WrappingInto<U> for Twhere
U: WrappingFrom<T>,
fn wrapping_into(self) -> U
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> NippyJarHeader for T
impl<N> NodeTrait for N
impl<T> NumBytes for T
impl<T> PHFKey for T
impl<T> Scalar 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: 80 bytes