#[repr(transparent)]pub struct FixedBytes<const N: usize>(pub [u8; N]);Expand description
A byte array of fixed length ([u8; N]).
This type allows us to more tightly control serialization, deserialization. rlp encoding, decoding, and other type-level attributes for fixed-length byte arrays.
Users looking to prevent type-confusion between byte arrays of different
lengths should use the wrap_fixed_bytes! macro
to create a new fixed-length byte array type.
Tuple Fields§
§0: [u8; N]Implementations§
Source§impl<const N: usize> FixedBytes<N>
impl<const N: usize> FixedBytes<N>
Sourcepub const fn new(bytes: [u8; N]) -> Self
pub const fn new(bytes: [u8; N]) -> Self
Wraps the given byte array in FixedBytes.
Sourcepub const fn with_last_byte(x: u8) -> Self
pub const fn with_last_byte(x: u8) -> Self
Creates a new FixedBytes 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 FixedBytes where all bytes are set to byte.
Sourcepub fn random() -> Self
Available on crate feature getrandom only.
pub fn random() -> Self
getrandom only.Creates a new FixedBytes with the default cryptographic random number generator.
This is rand::thread_rng if the “rand” and “std” features are enabled, otherwise
it uses getrandom::getrandom. Both are cryptographically secure.
Sourcepub fn try_random() -> Result<Self, Error>
Available on crate feature getrandom only.
pub fn try_random() -> Result<Self, Error>
getrandom only.Tries to create a new FixedBytes with the default cryptographic random number
generator.
See random for more details.
Sourcepub fn random_with<R: RngCore + ?Sized>(rng: &mut R) -> Self
Available on crate feature rand only.
pub fn random_with<R: RngCore + ?Sized>(rng: &mut R) -> Self
rand only.Creates a new FixedBytes with the given random number generator.
See random for more details.
Sourcepub fn try_random_with<R: TryRngCore + ?Sized>(
rng: &mut R,
) -> Result<Self, R::Error>
Available on crate feature rand only.
pub fn try_random_with<R: TryRngCore + ?Sized>( rng: &mut R, ) -> Result<Self, R::Error>
rand only.Tries to create a new FixedBytes with the given random number generator.
Sourcepub fn randomize(&mut self)
Available on crate feature getrandom only.
pub fn randomize(&mut self)
getrandom only.Fills this FixedBytes with the default cryptographic random number generator.
See random for more details.
Sourcepub fn try_randomize(&mut self) -> Result<(), Error>
Available on crate feature getrandom only.
pub fn try_randomize(&mut self) -> Result<(), Error>
getrandom only.Tries to fill this FixedBytes with the default cryptographic random number
generator.
See random for more details.
Sourcepub fn randomize_with<R: RngCore + ?Sized>(&mut self, rng: &mut R)
Available on crate feature rand only.
pub fn randomize_with<R: RngCore + ?Sized>(&mut self, rng: &mut R)
rand only.Fills this FixedBytes with the given random number generator.
Sourcepub fn try_randomize_with<R: TryRngCore + ?Sized>(
&mut self,
rng: &mut R,
) -> Result<(), R::Error>
Available on crate feature rand only.
pub fn try_randomize_with<R: TryRngCore + ?Sized>( &mut self, rng: &mut R, ) -> Result<(), R::Error>
rand only.Tries to fill this FixedBytes with the given random number generator.
Sourcepub const fn concat_const<const M: usize, const Z: usize>(
self,
other: FixedBytes<M>,
) -> FixedBytes<Z>
pub const fn concat_const<const M: usize, const Z: usize>( self, other: FixedBytes<M>, ) -> FixedBytes<Z>
Concatenate two FixedBytes.
Due to constraints in the language, the user must specify the value of
the output size Z.
§Panics
Panics if Z is not equal to N + M.
Sourcepub fn from_slice(src: &[u8]) -> Self
pub fn from_slice(src: &[u8]) -> Self
Create a new FixedBytes 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.
Sourcepub fn left_padding_from(value: &[u8]) -> Self
pub fn left_padding_from(value: &[u8]) -> Self
Create a new FixedBytes 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.
Sourcepub fn right_padding_from(value: &[u8]) -> Self
pub fn right_padding_from(value: &[u8]) -> Self
Create a new FixedBytes 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.
Sourcepub const fn as_slice(&self) -> &[u8] ⓘ
pub const fn as_slice(&self) -> &[u8] ⓘ
Returns a slice containing the entire array. Equivalent to &s[..].
Sourcepub const fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub const fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Returns a mutable slice containing the entire array. Equivalent to
&mut s[..].
Sourcepub fn covers(&self, other: &Self) -> bool
pub fn covers(&self, other: &Self) -> bool
Returns true if all bits set in self are also set in b.
Sourcepub const fn const_covers(self, other: Self) -> bool
pub const fn const_covers(self, other: Self) -> bool
Returns true if all bits set in self are also set in b.
Sourcepub const fn const_eq(&self, other: &Self) -> bool
pub const fn const_eq(&self, other: &Self) -> bool
Compile-time equality. NOT constant-time equality.
Sourcepub const fn const_is_zero(&self) -> bool
pub const 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)]
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<const N: usize> Allocative for FixedBytes<N>
impl<const N: usize> Allocative for FixedBytes<N>
Source§impl<'arbitrary, const N: usize> Arbitrary<'arbitrary> for FixedBytes<N>
impl<'arbitrary, const N: usize> Arbitrary<'arbitrary> for FixedBytes<N>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl<const N: usize> Arbitrary for FixedBytes<N>
impl<const N: usize> Arbitrary for FixedBytes<N>
Source§type Parameters = <[u8; N] as Arbitrary>::Parameters
type Parameters = <[u8; N] as Arbitrary>::Parameters
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<<[u8; N] as Arbitrary>::Strategy, fn([u8; N]) -> FixedBytes<N>>
type Strategy = Map<<[u8; N] as Arbitrary>::Strategy, fn([u8; N]) -> FixedBytes<N>>
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl<const N: usize> Archive for FixedBytes<N>
impl<const N: usize> Archive for FixedBytes<N>
Source§type Archived = ArchivedFixedBytes<N>
type Archived = ArchivedFixedBytes<N>
Source§type Resolver = FixedBytesResolver<N>
type Resolver = FixedBytesResolver<N>
Source§fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read moreSource§impl<'__expr, const N: usize> AsExpression<Binary> for &'__expr FixedBytes<N>
impl<'__expr, const N: usize> AsExpression<Binary> for &'__expr FixedBytes<N>
Source§type Expression = Bound<Binary, &'__expr FixedBytes<N>>
type Expression = Bound<Binary, &'__expr FixedBytes<N>>
Source§fn as_expression(self) -> <Self as AsExpression<Binary>>::Expression
fn as_expression(self) -> <Self as AsExpression<Binary>>::Expression
Source§impl<const N: usize> AsExpression<Binary> for FixedBytes<N>
impl<const N: usize> AsExpression<Binary> for FixedBytes<N>
Source§type Expression = Bound<Binary, FixedBytes<N>>
type Expression = Bound<Binary, FixedBytes<N>>
Source§fn as_expression(self) -> <Self as AsExpression<Binary>>::Expression
fn as_expression(self) -> <Self as AsExpression<Binary>>::Expression
Source§impl<'__expr, const N: usize> AsExpression<Nullable<Binary>> for &'__expr FixedBytes<N>
impl<'__expr, const N: usize> AsExpression<Nullable<Binary>> for &'__expr FixedBytes<N>
Source§type Expression = Bound<Nullable<Binary>, &'__expr FixedBytes<N>>
type Expression = Bound<Nullable<Binary>, &'__expr FixedBytes<N>>
Source§fn as_expression(self) -> <Self as AsExpression<Nullable<Binary>>>::Expression
fn as_expression(self) -> <Self as AsExpression<Nullable<Binary>>>::Expression
Source§impl<const N: usize> AsExpression<Nullable<Binary>> for FixedBytes<N>
impl<const N: usize> AsExpression<Nullable<Binary>> for FixedBytes<N>
Source§type Expression = Bound<Nullable<Binary>, FixedBytes<N>>
type Expression = Bound<Nullable<Binary>, FixedBytes<N>>
Source§fn as_expression(self) -> <Self as AsExpression<Nullable<Binary>>>::Expression
fn as_expression(self) -> <Self as AsExpression<Nullable<Binary>>>::Expression
Source§impl AsMut<FixedBytes<20>> for Address
impl AsMut<FixedBytes<20>> for Address
Source§fn as_mut(&mut self) -> &mut FixedBytes<20>
fn as_mut(&mut self) -> &mut FixedBytes<20>
Source§impl AsMut<FixedBytes<24>> for Function
impl AsMut<FixedBytes<24>> for Function
Source§fn as_mut(&mut self) -> &mut FixedBytes<24>
fn as_mut(&mut self) -> &mut FixedBytes<24>
Source§impl AsMut<FixedBytes<256>> for Bloom
impl AsMut<FixedBytes<256>> for Bloom
Source§fn as_mut(&mut self) -> &mut FixedBytes<256>
fn as_mut(&mut self) -> &mut FixedBytes<256>
Source§impl AsRef<FixedBytes<20>> for Address
impl AsRef<FixedBytes<20>> for Address
Source§fn as_ref(&self) -> &FixedBytes<20>
fn as_ref(&self) -> &FixedBytes<20>
Source§impl AsRef<FixedBytes<24>> for Function
impl AsRef<FixedBytes<24>> for Function
Source§fn as_ref(&self) -> &FixedBytes<24>
fn as_ref(&self) -> &FixedBytes<24>
Source§impl AsRef<FixedBytes<256>> for Bloom
impl AsRef<FixedBytes<256>> for Bloom
Source§fn as_ref(&self) -> &FixedBytes<256>
fn as_ref(&self) -> &FixedBytes<256>
Source§impl<const N: usize> BitAnd<&FixedBytes<N>> for FixedBytes<N>
impl<const N: usize> BitAnd<&FixedBytes<N>> for FixedBytes<N>
Source§impl<const N: usize> BitAnd for FixedBytes<N>
impl<const N: usize> BitAnd for FixedBytes<N>
Source§impl<const N: usize> BitAndAssign<&FixedBytes<N>> for FixedBytes<N>
impl<const N: usize> BitAndAssign<&FixedBytes<N>> for FixedBytes<N>
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
&= operation. Read moreSource§impl<const N: usize> BitAndAssign for FixedBytes<N>
impl<const N: usize> BitAndAssign for FixedBytes<N>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl<const N: usize> BitOr<&FixedBytes<N>> for FixedBytes<N>
impl<const N: usize> BitOr<&FixedBytes<N>> for FixedBytes<N>
Source§impl<const N: usize> BitOr for FixedBytes<N>
impl<const N: usize> BitOr for FixedBytes<N>
Source§impl<const N: usize> BitOrAssign<&FixedBytes<N>> for FixedBytes<N>
impl<const N: usize> BitOrAssign<&FixedBytes<N>> for FixedBytes<N>
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
|= operation. Read moreSource§impl<const N: usize> BitOrAssign for FixedBytes<N>
impl<const N: usize> BitOrAssign for FixedBytes<N>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl<const N: usize> BitXor<&FixedBytes<N>> for FixedBytes<N>
impl<const N: usize> BitXor<&FixedBytes<N>> for FixedBytes<N>
Source§impl<const N: usize> BitXor for FixedBytes<N>
impl<const N: usize> BitXor for FixedBytes<N>
Source§impl<const N: usize> BitXorAssign<&FixedBytes<N>> for FixedBytes<N>
impl<const N: usize> BitXorAssign<&FixedBytes<N>> for FixedBytes<N>
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
^= operation. Read moreSource§impl<const N: usize> BitXorAssign for FixedBytes<N>
impl<const N: usize> BitXorAssign for FixedBytes<N>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl<const N: usize> BorshDeserialize for FixedBytes<N>
Available on crate feature borsh only.
impl<const N: usize> BorshDeserialize for FixedBytes<N>
borsh only.fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl<const N: usize> BorshSerialize for FixedBytes<N>
Available on crate feature borsh only.
impl<const N: usize> BorshSerialize for FixedBytes<N>
borsh only.Source§impl<const N: usize> Clone for FixedBytes<N>
impl<const N: usize> Clone for FixedBytes<N>
Source§fn clone(&self) -> FixedBytes<N>
fn clone(&self) -> FixedBytes<N>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<const N: usize> Debug for FixedBytes<N>
impl<const N: usize> Debug for FixedBytes<N>
Source§impl<const N: usize> Decodable for FixedBytes<N>
Available on crate feature rlp only.
impl<const N: usize> Decodable for FixedBytes<N>
rlp only.Source§impl<'a, const BYTES: usize, DB> Decode<'a, DB> for FixedBytes<BYTES>
Available on crate feature sqlx only.
impl<'a, const BYTES: usize, DB> Decode<'a, DB> for FixedBytes<BYTES>
sqlx only.Source§impl<const N: usize> Default for &FixedBytes<N>
impl<const N: usize> Default for &FixedBytes<N>
Source§impl<const N: usize> Default for FixedBytes<N>
impl<const N: usize> Default for FixedBytes<N>
Source§impl<const N: usize> Deref for FixedBytes<N>
impl<const N: usize> Deref for FixedBytes<N>
Source§impl<const N: usize> DerefMut for FixedBytes<N>
impl<const N: usize> DerefMut for FixedBytes<N>
Source§impl<'de, const N: usize> Deserialize<'de> for FixedBytes<N>
Available on crate feature serde only.
impl<'de, const N: usize> Deserialize<'de> for FixedBytes<N>
serde only.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<__D: Fallible + ?Sized, const N: usize> Deserialize<FixedBytes<N>, __D> for Archived<FixedBytes<N>>
impl<__D: Fallible + ?Sized, const N: usize> Deserialize<FixedBytes<N>, __D> for Archived<FixedBytes<N>>
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<FixedBytes<N>, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<FixedBytes<N>, <__D as Fallible>::Error>
Source§impl<const N: usize> Display for FixedBytes<N>
impl<const N: usize> Display for FixedBytes<N>
Source§impl<const N: usize> Distribution<FixedBytes<N>> for StandardUniform
Available on crate feature rand only.
impl<const N: usize> Distribution<FixedBytes<N>> for StandardUniform
rand only.Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> FixedBytes<N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> FixedBytes<N>
T, using rng as the source of randomness.Source§impl<const N: usize> Encodable for FixedBytes<N>
Available on crate feature rlp only.
impl<const N: usize> Encodable for FixedBytes<N>
rlp only.Source§impl<'a, const BYTES: usize, DB> Encode<'a, DB> for FixedBytes<BYTES>
Available on crate feature sqlx only.
impl<'a, const BYTES: usize, DB> Encode<'a, DB> for FixedBytes<BYTES>
sqlx only.Source§fn encode_by_ref(
&self,
buf: &mut <DB as Database>::ArgumentBuffer<'a>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <DB as Database>::ArgumentBuffer<'a>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<const N: usize> From<&'static FixedBytes<N>> for Bytes
impl<const N: usize> From<&'static FixedBytes<N>> for Bytes
Source§fn from(value: &'static FixedBytes<N>) -> Self
fn from(value: &'static FixedBytes<N>) -> Self
Source§impl From<Address> for FixedBytes<20>
impl From<Address> for FixedBytes<20>
Source§impl<const N: usize> From<ArchivedFixedBytes<N>> for FixedBytes<N>
Available on crate feature rkyv only.
impl<const N: usize> From<ArchivedFixedBytes<N>> for FixedBytes<N>
rkyv only.Source§fn from(archived: ArchivedFixedBytes<N>) -> Self
fn from(archived: ArchivedFixedBytes<N>) -> Self
Source§impl From<Bloom> for FixedBytes<256>
impl From<Bloom> for FixedBytes<256>
Source§impl From<FixedBytes<1>> for I8
impl From<FixedBytes<1>> for I8
Source§impl From<FixedBytes<1>> for U8
impl From<FixedBytes<1>> for U8
Source§impl From<FixedBytes<1>> for i8
impl From<FixedBytes<1>> for i8
Source§impl From<FixedBytes<1>> for u8
impl From<FixedBytes<1>> for u8
Source§impl From<FixedBytes<16>> for I128
impl From<FixedBytes<16>> for I128
Source§impl From<FixedBytes<16>> for U128
impl From<FixedBytes<16>> for U128
Source§impl From<FixedBytes<16>> for i128
impl From<FixedBytes<16>> for i128
Source§impl From<FixedBytes<16>> for u128
impl From<FixedBytes<16>> for u128
Source§impl From<FixedBytes<2>> for I16
impl From<FixedBytes<2>> for I16
Source§impl From<FixedBytes<2>> for U16
impl From<FixedBytes<2>> for U16
Source§impl From<FixedBytes<2>> for i16
impl From<FixedBytes<2>> for i16
Source§impl From<FixedBytes<2>> for u16
impl From<FixedBytes<2>> for u16
Source§impl From<FixedBytes<20>> for Address
impl From<FixedBytes<20>> for Address
Source§fn from(value: FixedBytes<20>) -> Self
fn from(value: FixedBytes<20>) -> Self
Source§impl From<FixedBytes<20>> for I160
impl From<FixedBytes<20>> for I160
Source§impl From<FixedBytes<20>> for U160
impl From<FixedBytes<20>> for U160
Source§impl From<FixedBytes<24>> for Function
impl From<FixedBytes<24>> for Function
Source§fn from(value: FixedBytes<24>) -> Self
fn from(value: FixedBytes<24>) -> Self
Source§impl From<FixedBytes<256>> for Bloom
impl From<FixedBytes<256>> for Bloom
Source§fn from(value: FixedBytes<256>) -> Self
fn from(value: FixedBytes<256>) -> Self
Source§impl From<FixedBytes<32>> for I256
impl From<FixedBytes<32>> for I256
Source§impl From<FixedBytes<32>> for U256
impl From<FixedBytes<32>> for U256
Source§impl From<FixedBytes<4>> for I32
impl From<FixedBytes<4>> for I32
Source§impl From<FixedBytes<4>> for U32
impl From<FixedBytes<4>> for U32
Source§impl From<FixedBytes<4>> for i32
impl From<FixedBytes<4>> for i32
Source§impl From<FixedBytes<4>> for u32
impl From<FixedBytes<4>> for u32
Source§impl From<FixedBytes<64>> for I512
impl From<FixedBytes<64>> for I512
Source§impl From<FixedBytes<64>> for U512
impl From<FixedBytes<64>> for U512
Source§impl From<FixedBytes<8>> for I64
impl From<FixedBytes<8>> for I64
Source§impl From<FixedBytes<8>> for U64
impl From<FixedBytes<8>> for U64
Source§impl From<FixedBytes<8>> for i64
impl From<FixedBytes<8>> for i64
Source§impl From<FixedBytes<8>> for u64
impl From<FixedBytes<8>> for u64
Source§impl<const N: usize> From<FixedBytes<N>> for [u8; N]
impl<const N: usize> From<FixedBytes<N>> for [u8; N]
Source§fn from(s: FixedBytes<N>) -> Self
fn from(s: FixedBytes<N>) -> Self
Source§impl<const N: usize> From<FixedBytes<N>> for Bytes
impl<const N: usize> From<FixedBytes<N>> for Bytes
Source§fn from(value: FixedBytes<N>) -> Self
fn from(value: FixedBytes<N>) -> Self
Source§impl From<Function> for FixedBytes<24>
impl From<Function> for FixedBytes<24>
Source§impl<const N: usize> FromHex for FixedBytes<N>
impl<const N: usize> FromHex for FixedBytes<N>
Source§impl<'a, const BITS: usize> FromSql<'a> for FixedBytes<BITS>
Available on crate feature postgres only.Converts FixedBytes From Postgres Bytea Type.
impl<'a, const BITS: usize> FromSql<'a> for FixedBytes<BITS>
postgres only.Converts FixedBytes From Postgres Bytea Type.
Source§fn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Type.Source§fn from_sql(
_: &Type,
raw: &'a [u8],
) -> Result<Self, Box<dyn Error + Sync + Send>>
fn from_sql( _: &Type, raw: &'a [u8], ) -> Result<Self, Box<dyn Error + Sync + Send>>
Type in its binary format. Read moreSource§impl<const BYTES: usize, Db: Backend> FromSql<Binary, Db> for FixedBytes<BYTES>
Available on crate feature diesel only.
impl<const BYTES: usize, Db: Backend> FromSql<Binary, Db> for FixedBytes<BYTES>
diesel only.Source§impl<const N: usize> FromStr for FixedBytes<N>
impl<const N: usize> FromStr for FixedBytes<N>
Source§impl<const N: usize> Hash for FixedBytes<N>
impl<const N: usize> Hash for FixedBytes<N>
Source§impl<__IdxT, const N: usize> Index<__IdxT> for FixedBytes<N>
impl<__IdxT, const N: usize> Index<__IdxT> for FixedBytes<N>
Source§impl<__IdxT, const N: usize> IndexMut<__IdxT> for FixedBytes<N>
impl<__IdxT, const N: usize> IndexMut<__IdxT> for FixedBytes<N>
Source§impl<'__deriveMoreLifetime, const N: usize> IntoIterator for &'__deriveMoreLifetime FixedBytes<N>
impl<'__deriveMoreLifetime, const N: usize> IntoIterator for &'__deriveMoreLifetime FixedBytes<N>
Source§impl<'__deriveMoreLifetime, const N: usize> IntoIterator for &'__deriveMoreLifetime mut FixedBytes<N>
impl<'__deriveMoreLifetime, const N: usize> IntoIterator for &'__deriveMoreLifetime mut FixedBytes<N>
Source§impl<const N: usize> IntoIterator for FixedBytes<N>
impl<const N: usize> IntoIterator for FixedBytes<N>
Source§impl<const N: usize> LowerHex for FixedBytes<N>
impl<const N: usize> LowerHex for FixedBytes<N>
Source§impl<const N: usize> MaxEncodedLenAssoc for FixedBytes<N>
Available on crate feature rlp only.
impl<const N: usize> MaxEncodedLenAssoc for FixedBytes<N>
rlp only.Source§impl<const N: usize> Not for FixedBytes<N>
impl<const N: usize> Not for FixedBytes<N>
Source§impl<const N: usize> Ord for FixedBytes<N>
impl<const N: usize> Ord for FixedBytes<N>
Source§fn cmp(&self, other: &FixedBytes<N>) -> Ordering
fn cmp(&self, other: &FixedBytes<N>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<const N: usize> PartialEq for FixedBytes<N>
impl<const N: usize> PartialEq for FixedBytes<N>
Source§impl<const N: usize> PartialOrd<&[u8]> for FixedBytes<N>
impl<const N: usize> PartialOrd<&[u8]> for FixedBytes<N>
Source§impl<const N: usize> PartialOrd<&FixedBytes<N>> for [u8]
impl<const N: usize> PartialOrd<&FixedBytes<N>> for [u8]
Source§impl<const N: usize> PartialOrd<[u8]> for &FixedBytes<N>
impl<const N: usize> PartialOrd<[u8]> for &FixedBytes<N>
Source§impl<const N: usize> PartialOrd<[u8]> for FixedBytes<N>
impl<const N: usize> PartialOrd<[u8]> for FixedBytes<N>
Source§impl<const N: usize> PartialOrd<FixedBytes<N>> for &[u8]
impl<const N: usize> PartialOrd<FixedBytes<N>> for &[u8]
Source§impl<const N: usize> PartialOrd<FixedBytes<N>> for [u8]
impl<const N: usize> PartialOrd<FixedBytes<N>> for [u8]
Source§impl<const N: usize> PartialOrd for FixedBytes<N>
impl<const N: usize> PartialOrd for FixedBytes<N>
Source§impl<const N: usize, __DB, __ST> Queryable<__ST, __DB> for FixedBytes<N>
impl<const N: usize, __DB, __ST> Queryable<__ST, __DB> for FixedBytes<N>
Source§impl<const N: usize> Serialize for FixedBytes<N>
Available on crate feature serde only.
impl<const N: usize> Serialize for FixedBytes<N>
serde only.Source§impl<const BYTES: usize, Db> ToSql<Binary, Db> for FixedBytes<BYTES>
Available on crate feature diesel only.
impl<const BYTES: usize, Db> ToSql<Binary, Db> for FixedBytes<BYTES>
diesel only.Source§impl<const BITS: usize> ToSql for FixedBytes<BITS>
Available on crate feature postgres only.Converts FixedBytes to Postgres Bytea Type.
impl<const BITS: usize> ToSql for FixedBytes<BITS>
postgres only.Converts FixedBytes to Postgres Bytea Type.
Source§fn to_sql(
&self,
_: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send + 'static>>
fn to_sql( &self, _: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send + 'static>>
self into the binary format of the specified
Postgres Type, appending it to out. Read moreSource§fn accepts(ty: &Type) -> bool
fn accepts(ty: &Type) -> bool
Type.Source§fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked( &self, ty: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Source§fn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Source§impl<'a, const N: usize> TryFrom<&'a [u8]> for &'a FixedBytes<N>
Tries to create a ref FixedBytes<N> by copying from a slice &[u8].
Succeeds if slice.len() == N.
impl<'a, const N: usize> TryFrom<&'a [u8]> for &'a FixedBytes<N>
Tries to create a ref FixedBytes<N> by copying from a slice &[u8].
Succeeds if slice.len() == N.
Source§impl<const N: usize> TryFrom<&[u8]> for FixedBytes<N>
Tries to create a FixedBytes<N> by copying from a slice &[u8]. Succeeds
if slice.len() == N.
impl<const N: usize> TryFrom<&[u8]> for FixedBytes<N>
Tries to create a FixedBytes<N> by copying from a slice &[u8]. Succeeds
if slice.len() == N.
Source§impl<'a, const N: usize> TryFrom<&'a mut [u8]> for &'a mut FixedBytes<N>
Tries to create a ref FixedBytes<N> by copying from a mutable slice &mut [u8]. Succeeds if slice.len() == N.
impl<'a, const N: usize> TryFrom<&'a mut [u8]> for &'a mut FixedBytes<N>
Tries to create a ref FixedBytes<N> by copying from a mutable slice &mut [u8]. Succeeds if slice.len() == N.
Source§impl<const N: usize> TryFrom<&mut [u8]> for FixedBytes<N>
Tries to create a FixedBytes<N> by copying from a mutable slice &mut [u8]. Succeeds if slice.len() == N.
impl<const N: usize> TryFrom<&mut [u8]> for FixedBytes<N>
Tries to create a FixedBytes<N> by copying from a mutable slice &mut [u8]. Succeeds if slice.len() == N.
Source§impl<const BYTES: usize, DB> Type<DB> for FixedBytes<BYTES>
Available on crate feature sqlx only.
impl<const BYTES: usize, DB> Type<DB> for FixedBytes<BYTES>
sqlx only.Source§impl<const N: usize> UpperHex for FixedBytes<N>
impl<const N: usize> UpperHex for FixedBytes<N>
impl<const N: usize> Copy for FixedBytes<N>
impl<const N: usize> Eq for FixedBytes<N>
impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<0>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<1>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<1024>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<128>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<16>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<2>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<20>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<256>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<32>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<4>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<512>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<64>
rlp only.impl MaxEncodedLen<{ $sz + length_of_length($sz) }> for FixedBytes<8>
rlp only.impl<const N: usize> StructuralPartialEq for FixedBytes<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedBytes<N>
impl<const N: usize> RefUnwindSafe for FixedBytes<N>
impl<const N: usize> Send for FixedBytes<N>
impl<const N: usize> Sync for FixedBytes<N>
impl<const N: usize> Unpin for FixedBytes<N>
impl<const N: usize> UnwindSafe for FixedBytes<N>
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read moreSource§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
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> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
Source§fn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
self as a ToSql trait object.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self to an expression for Diesel’s query builder. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, S> SerializeUnsized<S> for T
impl<T, S> SerializeUnsized<S> for T
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>,
ToHexExt insteadself 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>,
ToHexExt insteadself into the result.
Upper case letters are used (e.g. F9B4CA).Source§impl<T> ToHexExt for T
impl<T> ToHexExt for T
Source§fn encode_hex(&self) -> String
fn encode_hex(&self) -> String
self into the result.
Lower case letters are used (e.g. f9b4ca).Source§fn encode_hex_upper(&self) -> String
fn encode_hex_upper(&self) -> String
self into the result.
Upper case letters are used (e.g. F9B4CA).Source§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).Source§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).Source§impl<T> WindowExpressionMethods for T
impl<T> WindowExpressionMethods for T
Source§fn over(self) -> Self::Outputwhere
Self: OverDsl,
fn over(self) -> Self::Outputwhere
Self: OverDsl,
Source§fn window_filter<P>(self, f: P) -> Self::Output
fn window_filter<P>(self, f: P) -> Self::Output
Source§fn partition_by<E>(self, expr: E) -> Self::Outputwhere
Self: PartitionByDsl<E>,
fn partition_by<E>(self, expr: E) -> Self::Outputwhere
Self: PartitionByDsl<E>,
Source§fn window_order<E>(self, expr: E) -> Self::Outputwhere
Self: OrderWindowDsl<E>,
fn window_order<E>(self, expr: E) -> Self::Outputwhere
Self: OrderWindowDsl<E>,
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> FromSqlOwned for Twhere
T: for<'a> FromSql<'a>,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.