Struct WireU32
#[repr(C, align(4))]pub struct WireU32(pub u32);
Expand description
A wire-encoded u32
Tuple Fields§
§0: u32
Trait Implementations§
§impl AddAssign<&WireU32> for WireU32
impl AddAssign<&WireU32> for WireU32
§fn add_assign(&mut self, other: &WireU32)
fn add_assign(&mut self, other: &WireU32)
Performs the
+=
operation. Read more§impl AddAssign<&u32> for WireU32
impl AddAssign<&u32> for WireU32
§fn add_assign(&mut self, other: &u32)
fn add_assign(&mut self, other: &u32)
Performs the
+=
operation. Read more§impl AddAssign<u32> for WireU32
impl AddAssign<u32> for WireU32
§fn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
Performs the
+=
operation. Read more§impl AddAssign for WireU32
impl AddAssign for WireU32
§fn add_assign(&mut self, other: WireU32)
fn add_assign(&mut self, other: WireU32)
Performs the
+=
operation. Read more§impl BitAndAssign<&WireU32> for WireU32
impl BitAndAssign<&WireU32> for WireU32
§fn bitand_assign(&mut self, other: &WireU32)
fn bitand_assign(&mut self, other: &WireU32)
Performs the
&=
operation. Read more§impl BitAndAssign<&u32> for WireU32
impl BitAndAssign<&u32> for WireU32
§fn bitand_assign(&mut self, other: &u32)
fn bitand_assign(&mut self, other: &u32)
Performs the
&=
operation. Read more§impl BitAndAssign<u32> for WireU32
impl BitAndAssign<u32> for WireU32
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for WireU32
impl BitAndAssign for WireU32
§fn bitand_assign(&mut self, other: WireU32)
fn bitand_assign(&mut self, other: WireU32)
Performs the
&=
operation. Read more§impl BitOrAssign<&WireU32> for WireU32
impl BitOrAssign<&WireU32> for WireU32
§fn bitor_assign(&mut self, other: &WireU32)
fn bitor_assign(&mut self, other: &WireU32)
Performs the
|=
operation. Read more§impl BitOrAssign<&u32> for WireU32
impl BitOrAssign<&u32> for WireU32
§fn bitor_assign(&mut self, other: &u32)
fn bitor_assign(&mut self, other: &u32)
Performs the
|=
operation. Read more§impl BitOrAssign<u32> for WireU32
impl BitOrAssign<u32> for WireU32
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for WireU32
impl BitOrAssign for WireU32
§fn bitor_assign(&mut self, other: WireU32)
fn bitor_assign(&mut self, other: WireU32)
Performs the
|=
operation. Read more§impl BitXorAssign<&WireU32> for WireU32
impl BitXorAssign<&WireU32> for WireU32
§fn bitxor_assign(&mut self, other: &WireU32)
fn bitxor_assign(&mut self, other: &WireU32)
Performs the
^=
operation. Read more§impl BitXorAssign<&u32> for WireU32
impl BitXorAssign<&u32> for WireU32
§fn bitxor_assign(&mut self, other: &u32)
fn bitxor_assign(&mut self, other: &u32)
Performs the
^=
operation. Read more§impl BitXorAssign<u32> for WireU32
impl BitXorAssign<u32> for WireU32
§fn bitxor_assign(&mut self, other: u32)
fn bitxor_assign(&mut self, other: u32)
Performs the
^=
operation. Read more§impl BitXorAssign for WireU32
impl BitXorAssign for WireU32
§fn bitxor_assign(&mut self, other: WireU32)
fn bitxor_assign(&mut self, other: WireU32)
Performs the
^=
operation. Read more§impl DivAssign<&WireU32> for WireU32
impl DivAssign<&WireU32> for WireU32
§fn div_assign(&mut self, other: &WireU32)
fn div_assign(&mut self, other: &WireU32)
Performs the
/=
operation. Read more§impl DivAssign<&u32> for WireU32
impl DivAssign<&u32> for WireU32
§fn div_assign(&mut self, other: &u32)
fn div_assign(&mut self, other: &u32)
Performs the
/=
operation. Read more§impl DivAssign<u32> for WireU32
impl DivAssign<u32> for WireU32
§fn div_assign(&mut self, other: u32)
fn div_assign(&mut self, other: u32)
Performs the
/=
operation. Read more§impl DivAssign for WireU32
impl DivAssign for WireU32
§fn div_assign(&mut self, other: WireU32)
fn div_assign(&mut self, other: WireU32)
Performs the
/=
operation. Read more§impl Encodable for WireU32
impl Encodable for WireU32
§const COPY_OPTIMIZATION: CopyOptimization<WireU32, WireU32> = CopyOptimization<WireU32, WireU32>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<WireU32, WireU32> = CopyOptimization<WireU32, WireU32>::PRIMITIVE
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read more§impl EncodableOption for WireU32
impl EncodableOption for WireU32
§type EncodedOption = WireBox<'static, WireU32>
type EncodedOption = WireBox<'static, WireU32>
The wire type for the optional value.
§impl<E> Encode<E> for WireU32where
E: ?Sized,
impl<E> Encode<E> for WireU32where
E: ?Sized,
§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<<WireU32 as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<<WireU32 as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§impl<E> EncodeOption<E> for WireU32
impl<E> EncodeOption<E> for WireU32
§fn encode_option(
this: Option<WireU32>,
encoder: &mut E,
out: &mut MaybeUninit<<WireU32 as EncodableOption>::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<WireU32>, encoder: &mut E, out: &mut MaybeUninit<<WireU32 as EncodableOption>::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
§impl<E> EncodeOptionRef<E> for WireU32
impl<E> EncodeOptionRef<E> for WireU32
§fn encode_option_ref(
this: Option<&WireU32>,
encoder: &mut E,
out: &mut MaybeUninit<<WireU32 as EncodableOption>::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option_ref( this: Option<&WireU32>, encoder: &mut E, out: &mut MaybeUninit<<WireU32 as EncodableOption>::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional reference into an encoder and output.
§impl<E> EncodeRef<E> for WireU32where
E: ?Sized,
impl<E> EncodeRef<E> for WireU32where
E: ?Sized,
§fn encode_ref(
&self,
_: &mut E,
out: &mut MaybeUninit<<WireU32 as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode_ref( &self, _: &mut E, out: &mut MaybeUninit<<WireU32 as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this reference into an encoder and output.
§impl FromBytes for WireU32where
u32: FromBytes,
impl FromBytes for WireU32where
u32: 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 FromWire<WireU32> for WireU32
impl FromWire<WireU32> for WireU32
§const COPY_OPTIMIZATION: CopyOptimization<WireU32, WireU32> = CopyOptimization<WireU32, WireU32>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<WireU32, WireU32> = CopyOptimization<WireU32, WireU32>::PRIMITIVE
§impl FromWire<WireU32> for u32
impl FromWire<WireU32> for u32
§const COPY_OPTIMIZATION: CopyOptimization<WireU32, u32> = CopyOptimization<WireU32, u32>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<WireU32, u32> = CopyOptimization<WireU32, u32>::PRIMITIVE
§impl FromWireRef<WireU32> for WireU32
impl FromWireRef<WireU32> for WireU32
§fn from_wire_ref(wire: &WireU32) -> WireU32
fn from_wire_ref(wire: &WireU32) -> WireU32
Converts the given
wire
reference to this type.§impl FromWireRef<WireU32> for u32
impl FromWireRef<WireU32> for u32
§fn from_wire_ref(wire: &WireU32) -> u32
fn from_wire_ref(wire: &WireU32) -> u32
Converts the given
wire
reference to this type.§impl IntoBytes for WireU32
impl IntoBytes for WireU32
§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<&WireU32> for WireU32
impl MulAssign<&WireU32> for WireU32
§fn mul_assign(&mut self, other: &WireU32)
fn mul_assign(&mut self, other: &WireU32)
Performs the
*=
operation. Read more§impl MulAssign<&u32> for WireU32
impl MulAssign<&u32> for WireU32
§fn mul_assign(&mut self, other: &u32)
fn mul_assign(&mut self, other: &u32)
Performs the
*=
operation. Read more§impl MulAssign<u32> for WireU32
impl MulAssign<u32> for WireU32
§fn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
Performs the
*=
operation. Read more§impl MulAssign for WireU32
impl MulAssign for WireU32
§fn mul_assign(&mut self, other: WireU32)
fn mul_assign(&mut self, other: WireU32)
Performs the
*=
operation. Read more§impl Ord for WireU32
impl Ord for WireU32
§impl PartialOrd<u32> for WireU32
impl PartialOrd<u32> for WireU32
§impl PartialOrd for WireU32
impl PartialOrd for WireU32
§impl RemAssign<&WireU32> for WireU32
impl RemAssign<&WireU32> for WireU32
§fn rem_assign(&mut self, other: &WireU32)
fn rem_assign(&mut self, other: &WireU32)
Performs the
%=
operation. Read more§impl RemAssign<&u32> for WireU32
impl RemAssign<&u32> for WireU32
§fn rem_assign(&mut self, other: &u32)
fn rem_assign(&mut self, other: &u32)
Performs the
%=
operation. Read more§impl RemAssign<u32> for WireU32
impl RemAssign<u32> for WireU32
§fn rem_assign(&mut self, other: u32)
fn rem_assign(&mut self, other: u32)
Performs the
%=
operation. Read more§impl RemAssign for WireU32
impl RemAssign for WireU32
§fn rem_assign(&mut self, other: WireU32)
fn rem_assign(&mut self, other: WireU32)
Performs the
%=
operation. Read more§impl ShlAssign<&WireU32> for WireU32
impl ShlAssign<&WireU32> for WireU32
§fn shl_assign(&mut self, other: &WireU32)
fn shl_assign(&mut self, other: &WireU32)
Performs the
<<=
operation. Read more§impl ShlAssign<&u32> for WireU32
impl ShlAssign<&u32> for WireU32
§fn shl_assign(&mut self, other: &u32)
fn shl_assign(&mut self, other: &u32)
Performs the
<<=
operation. Read more§impl ShlAssign<u32> for WireU32
impl ShlAssign<u32> for WireU32
§fn shl_assign(&mut self, other: u32)
fn shl_assign(&mut self, other: u32)
Performs the
<<=
operation. Read more§impl ShlAssign for WireU32
impl ShlAssign for WireU32
§fn shl_assign(&mut self, other: WireU32)
fn shl_assign(&mut self, other: WireU32)
Performs the
<<=
operation. Read more§impl ShrAssign<&WireU32> for WireU32
impl ShrAssign<&WireU32> for WireU32
§fn shr_assign(&mut self, other: &WireU32)
fn shr_assign(&mut self, other: &WireU32)
Performs the
>>=
operation. Read more§impl ShrAssign<&u32> for WireU32
impl ShrAssign<&u32> for WireU32
§fn shr_assign(&mut self, other: &u32)
fn shr_assign(&mut self, other: &u32)
Performs the
>>=
operation. Read more§impl ShrAssign<u32> for WireU32
impl ShrAssign<u32> for WireU32
§fn shr_assign(&mut self, other: u32)
fn shr_assign(&mut self, other: u32)
Performs the
>>=
operation. Read more§impl ShrAssign for WireU32
impl ShrAssign for WireU32
§fn shr_assign(&mut self, other: WireU32)
fn shr_assign(&mut self, other: WireU32)
Performs the
>>=
operation. Read more§impl SubAssign<&WireU32> for WireU32
impl SubAssign<&WireU32> for WireU32
§fn sub_assign(&mut self, other: &WireU32)
fn sub_assign(&mut self, other: &WireU32)
Performs the
-=
operation. Read more§impl SubAssign<&u32> for WireU32
impl SubAssign<&u32> for WireU32
§fn sub_assign(&mut self, other: &u32)
fn sub_assign(&mut self, other: &u32)
Performs the
-=
operation. Read more§impl SubAssign<u32> for WireU32
impl SubAssign<u32> for WireU32
§fn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
Performs the
-=
operation. Read more§impl SubAssign for WireU32
impl SubAssign for WireU32
§fn sub_assign(&mut self, other: WireU32)
fn sub_assign(&mut self, other: WireU32)
Performs the
-=
operation. Read more§impl TryFromBytes for WireU32where
u32: TryFromBytes,
impl TryFromBytes for WireU32where
u32: 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 Wire for WireU32
impl Wire for WireU32
§fn zero_padding(_: &mut MaybeUninit<WireU32>)
fn zero_padding(_: &mut MaybeUninit<WireU32>)
Writes zeroes to the padding for this type, if any.
impl Copy for WireU32
impl Eq for WireU32
Auto Trait Implementations§
impl Freeze for WireU32
impl RefUnwindSafe for WireU32
impl Send for WireU32
impl Sync for WireU32
impl Unpin for WireU32
impl UnwindSafe for WireU32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
Converts the given
wire
reference to an option of this type.