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