Struct WireU64
#[repr(C, align(8))]pub struct WireU64(pub u64);
Expand description
A wire-encoded u64
Tuple Fields§
§0: u64
Trait Implementations§
§impl AddAssign<&WireU64> for WireU64
impl AddAssign<&WireU64> for WireU64
§fn add_assign(&mut self, other: &WireU64)
fn add_assign(&mut self, other: &WireU64)
Performs the
+=
operation. Read more§impl AddAssign<&u64> for WireU64
impl AddAssign<&u64> for WireU64
§fn add_assign(&mut self, other: &u64)
fn add_assign(&mut self, other: &u64)
Performs the
+=
operation. Read more§impl AddAssign<u64> for WireU64
impl AddAssign<u64> for WireU64
§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
Performs the
+=
operation. Read more§impl AddAssign for WireU64
impl AddAssign for WireU64
§fn add_assign(&mut self, other: WireU64)
fn add_assign(&mut self, other: WireU64)
Performs the
+=
operation. Read more§impl BitAndAssign<&WireU64> for WireU64
impl BitAndAssign<&WireU64> for WireU64
§fn bitand_assign(&mut self, other: &WireU64)
fn bitand_assign(&mut self, other: &WireU64)
Performs the
&=
operation. Read more§impl BitAndAssign<&u64> for WireU64
impl BitAndAssign<&u64> for WireU64
§fn bitand_assign(&mut self, other: &u64)
fn bitand_assign(&mut self, other: &u64)
Performs the
&=
operation. Read more§impl BitAndAssign<u64> for WireU64
impl BitAndAssign<u64> for WireU64
§fn bitand_assign(&mut self, other: u64)
fn bitand_assign(&mut self, other: u64)
Performs the
&=
operation. Read more§impl BitAndAssign for WireU64
impl BitAndAssign for WireU64
§fn bitand_assign(&mut self, other: WireU64)
fn bitand_assign(&mut self, other: WireU64)
Performs the
&=
operation. Read more§impl BitOrAssign<&WireU64> for WireU64
impl BitOrAssign<&WireU64> for WireU64
§fn bitor_assign(&mut self, other: &WireU64)
fn bitor_assign(&mut self, other: &WireU64)
Performs the
|=
operation. Read more§impl BitOrAssign<&u64> for WireU64
impl BitOrAssign<&u64> for WireU64
§fn bitor_assign(&mut self, other: &u64)
fn bitor_assign(&mut self, other: &u64)
Performs the
|=
operation. Read more§impl BitOrAssign<u64> for WireU64
impl BitOrAssign<u64> for WireU64
§fn bitor_assign(&mut self, other: u64)
fn bitor_assign(&mut self, other: u64)
Performs the
|=
operation. Read more§impl BitOrAssign for WireU64
impl BitOrAssign for WireU64
§fn bitor_assign(&mut self, other: WireU64)
fn bitor_assign(&mut self, other: WireU64)
Performs the
|=
operation. Read more§impl BitXorAssign<&WireU64> for WireU64
impl BitXorAssign<&WireU64> for WireU64
§fn bitxor_assign(&mut self, other: &WireU64)
fn bitxor_assign(&mut self, other: &WireU64)
Performs the
^=
operation. Read more§impl BitXorAssign<&u64> for WireU64
impl BitXorAssign<&u64> for WireU64
§fn bitxor_assign(&mut self, other: &u64)
fn bitxor_assign(&mut self, other: &u64)
Performs the
^=
operation. Read more§impl BitXorAssign<u64> for WireU64
impl BitXorAssign<u64> for WireU64
§fn bitxor_assign(&mut self, other: u64)
fn bitxor_assign(&mut self, other: u64)
Performs the
^=
operation. Read more§impl BitXorAssign for WireU64
impl BitXorAssign for WireU64
§fn bitxor_assign(&mut self, other: WireU64)
fn bitxor_assign(&mut self, other: WireU64)
Performs the
^=
operation. Read more§impl DivAssign<&WireU64> for WireU64
impl DivAssign<&WireU64> for WireU64
§fn div_assign(&mut self, other: &WireU64)
fn div_assign(&mut self, other: &WireU64)
Performs the
/=
operation. Read more§impl DivAssign<&u64> for WireU64
impl DivAssign<&u64> for WireU64
§fn div_assign(&mut self, other: &u64)
fn div_assign(&mut self, other: &u64)
Performs the
/=
operation. Read more§impl DivAssign<u64> for WireU64
impl DivAssign<u64> for WireU64
§fn div_assign(&mut self, other: u64)
fn div_assign(&mut self, other: u64)
Performs the
/=
operation. Read more§impl DivAssign for WireU64
impl DivAssign for WireU64
§fn div_assign(&mut self, other: WireU64)
fn div_assign(&mut self, other: WireU64)
Performs the
/=
operation. Read more§impl Encodable for WireU64
impl Encodable for WireU64
§const COPY_OPTIMIZATION: CopyOptimization<WireU64>
const COPY_OPTIMIZATION: CopyOptimization<WireU64>
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read more§impl EncodableOption for WireU64
impl EncodableOption for WireU64
§type EncodedOption = WireBox<WireU64>
type EncodedOption = WireBox<WireU64>
The wire type for the optional value.
§impl<E> Encode<E> for WireU64where
E: ?Sized,
impl<E> Encode<E> for WireU64where
E: ?Sized,
§fn encode(
&mut self,
_: &mut E,
out: &mut MaybeUninit<<WireU64 as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode( &mut self, _: &mut E, out: &mut MaybeUninit<<WireU64 as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§impl<E> EncodeOption<E> for WireU64
impl<E> EncodeOption<E> for WireU64
§fn encode_option(
this: Option<&mut WireU64>,
encoder: &mut E,
out: &mut MaybeUninit<<WireU64 as EncodableOption>::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut WireU64>, encoder: &mut E, out: &mut MaybeUninit<<WireU64 as EncodableOption>::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
§impl FromBytes for WireU64where
u64: FromBytes,
impl FromBytes for WireU64where
u64: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
Interprets the suffix of the given bytes as a
&Self
. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize> + Immutable,
fn mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize> + Immutable,
§fn mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
fn mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
§fn mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
fn mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout<PointerMetadata = usize>,
§impl IntoBytes for WireU64
impl IntoBytes for WireU64
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
§impl MulAssign<&WireU64> for WireU64
impl MulAssign<&WireU64> for WireU64
§fn mul_assign(&mut self, other: &WireU64)
fn mul_assign(&mut self, other: &WireU64)
Performs the
*=
operation. Read more§impl MulAssign<&u64> for WireU64
impl MulAssign<&u64> for WireU64
§fn mul_assign(&mut self, other: &u64)
fn mul_assign(&mut self, other: &u64)
Performs the
*=
operation. Read more§impl MulAssign<u64> for WireU64
impl MulAssign<u64> for WireU64
§fn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
Performs the
*=
operation. Read more§impl MulAssign for WireU64
impl MulAssign for WireU64
§fn mul_assign(&mut self, other: WireU64)
fn mul_assign(&mut self, other: WireU64)
Performs the
*=
operation. Read more§impl Ord for WireU64
impl Ord for WireU64
§impl PartialOrd<u64> for WireU64
impl PartialOrd<u64> for WireU64
§impl PartialOrd for WireU64
impl PartialOrd for WireU64
§impl RemAssign<&WireU64> for WireU64
impl RemAssign<&WireU64> for WireU64
§fn rem_assign(&mut self, other: &WireU64)
fn rem_assign(&mut self, other: &WireU64)
Performs the
%=
operation. Read more§impl RemAssign<&u64> for WireU64
impl RemAssign<&u64> for WireU64
§fn rem_assign(&mut self, other: &u64)
fn rem_assign(&mut self, other: &u64)
Performs the
%=
operation. Read more§impl RemAssign<u64> for WireU64
impl RemAssign<u64> for WireU64
§fn rem_assign(&mut self, other: u64)
fn rem_assign(&mut self, other: u64)
Performs the
%=
operation. Read more§impl RemAssign for WireU64
impl RemAssign for WireU64
§fn rem_assign(&mut self, other: WireU64)
fn rem_assign(&mut self, other: WireU64)
Performs the
%=
operation. Read more§impl ShlAssign<&WireU64> for WireU64
impl ShlAssign<&WireU64> for WireU64
§fn shl_assign(&mut self, other: &WireU64)
fn shl_assign(&mut self, other: &WireU64)
Performs the
<<=
operation. Read more§impl ShlAssign<&u64> for WireU64
impl ShlAssign<&u64> for WireU64
§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
Performs the
<<=
operation. Read more§impl ShlAssign<u64> for WireU64
impl ShlAssign<u64> for WireU64
§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
Performs the
<<=
operation. Read more§impl ShlAssign for WireU64
impl ShlAssign for WireU64
§fn shl_assign(&mut self, other: WireU64)
fn shl_assign(&mut self, other: WireU64)
Performs the
<<=
operation. Read more§impl ShrAssign<&WireU64> for WireU64
impl ShrAssign<&WireU64> for WireU64
§fn shr_assign(&mut self, other: &WireU64)
fn shr_assign(&mut self, other: &WireU64)
Performs the
>>=
operation. Read more§impl ShrAssign<&u64> for WireU64
impl ShrAssign<&u64> for WireU64
§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
Performs the
>>=
operation. Read more§impl ShrAssign<u64> for WireU64
impl ShrAssign<u64> for WireU64
§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
Performs the
>>=
operation. Read more§impl ShrAssign for WireU64
impl ShrAssign for WireU64
§fn shr_assign(&mut self, other: WireU64)
fn shr_assign(&mut self, other: WireU64)
Performs the
>>=
operation. Read more§impl SubAssign<&WireU64> for WireU64
impl SubAssign<&WireU64> for WireU64
§fn sub_assign(&mut self, other: &WireU64)
fn sub_assign(&mut self, other: &WireU64)
Performs the
-=
operation. Read more§impl SubAssign<&u64> for WireU64
impl SubAssign<&u64> for WireU64
§fn sub_assign(&mut self, other: &u64)
fn sub_assign(&mut self, other: &u64)
Performs the
-=
operation. Read more§impl SubAssign<u64> for WireU64
impl SubAssign<u64> for WireU64
§fn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
Performs the
-=
operation. Read more§impl SubAssign for WireU64
impl SubAssign for WireU64
§fn sub_assign(&mut self, other: WireU64)
fn sub_assign(&mut self, other: WireU64)
Performs the
-=
operation. Read more§impl TakeFrom<WireU64> for WireU64
impl TakeFrom<WireU64> for WireU64
§const COPY_OPTIMIZATION: CopyOptimization<WireU64>
const COPY_OPTIMIZATION: CopyOptimization<WireU64>
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read more§impl TakeFrom<WireU64> for u64
impl TakeFrom<WireU64> for u64
§const COPY_OPTIMIZATION: CopyOptimization<u64>
const COPY_OPTIMIZATION: CopyOptimization<u64>
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read more§impl TryFromBytes for WireU64where
u64: TryFromBytes,
impl TryFromBytes for WireU64where
u64: TryFromBytes,
§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
§fn try_ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_bytes_with_elems(
source: &[u8],
count: usize,
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
§fn try_ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_prefix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
Attempts to interpret the prefix of the given
source
as a &Self
with
a DST length equal to count
. Read more§fn try_ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
fn try_ref_from_suffix_with_elems(
source: &[u8],
count: usize,
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + Immutable,
Attempts to interpret the suffix of the given
source
as a &Self
with
a DST length equal to count
. Read more§fn try_mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_bytes_with_elems(
source: &mut [u8],
count: usize,
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
§fn try_mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_prefix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
Attempts to interpret the prefix of the given
source
as a &mut Self
with a DST length equal to count
. Read more§fn try_mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
fn try_mut_from_suffix_with_elems(
source: &mut [u8],
count: usize,
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout<PointerMetadata = usize> + IntoBytes,
Attempts to interpret the suffix of the given
source
as a &mut Self
with a DST length equal to count
. Read more§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§impl ZeroPadding for WireU64
impl ZeroPadding for WireU64
§fn zero_padding(_: &mut MaybeUninit<WireU64>)
fn zero_padding(_: &mut MaybeUninit<WireU64>)
Writes zeroes to the padding for this type, if any.
impl Copy for WireU64
impl Eq for WireU64
Auto Trait Implementations§
impl Freeze for WireU64
impl RefUnwindSafe for WireU64
impl Send for WireU64
impl Sync for WireU64
impl Unpin for WireU64
impl UnwindSafe for WireU64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more