Struct WireI16
#[repr(C, align(2))]pub struct WireI16(pub i16);
Expand description
A wire-encoded i16
Tuple Fields§
§0: i16
Trait Implementations§
§impl AddAssign<&WireI16> for WireI16
impl AddAssign<&WireI16> for WireI16
§fn add_assign(&mut self, other: &WireI16)
fn add_assign(&mut self, other: &WireI16)
Performs the
+=
operation. Read more§impl AddAssign<&i16> for WireI16
impl AddAssign<&i16> for WireI16
§fn add_assign(&mut self, other: &i16)
fn add_assign(&mut self, other: &i16)
Performs the
+=
operation. Read more§impl AddAssign<i16> for WireI16
impl AddAssign<i16> for WireI16
§fn add_assign(&mut self, other: i16)
fn add_assign(&mut self, other: i16)
Performs the
+=
operation. Read more§impl AddAssign for WireI16
impl AddAssign for WireI16
§fn add_assign(&mut self, other: WireI16)
fn add_assign(&mut self, other: WireI16)
Performs the
+=
operation. Read more§impl BitAndAssign<&WireI16> for WireI16
impl BitAndAssign<&WireI16> for WireI16
§fn bitand_assign(&mut self, other: &WireI16)
fn bitand_assign(&mut self, other: &WireI16)
Performs the
&=
operation. Read more§impl BitAndAssign<&i16> for WireI16
impl BitAndAssign<&i16> for WireI16
§fn bitand_assign(&mut self, other: &i16)
fn bitand_assign(&mut self, other: &i16)
Performs the
&=
operation. Read more§impl BitAndAssign<i16> for WireI16
impl BitAndAssign<i16> for WireI16
§fn bitand_assign(&mut self, other: i16)
fn bitand_assign(&mut self, other: i16)
Performs the
&=
operation. Read more§impl BitAndAssign for WireI16
impl BitAndAssign for WireI16
§fn bitand_assign(&mut self, other: WireI16)
fn bitand_assign(&mut self, other: WireI16)
Performs the
&=
operation. Read more§impl BitOrAssign<&WireI16> for WireI16
impl BitOrAssign<&WireI16> for WireI16
§fn bitor_assign(&mut self, other: &WireI16)
fn bitor_assign(&mut self, other: &WireI16)
Performs the
|=
operation. Read more§impl BitOrAssign<&i16> for WireI16
impl BitOrAssign<&i16> for WireI16
§fn bitor_assign(&mut self, other: &i16)
fn bitor_assign(&mut self, other: &i16)
Performs the
|=
operation. Read more§impl BitOrAssign<i16> for WireI16
impl BitOrAssign<i16> for WireI16
§fn bitor_assign(&mut self, other: i16)
fn bitor_assign(&mut self, other: i16)
Performs the
|=
operation. Read more§impl BitOrAssign for WireI16
impl BitOrAssign for WireI16
§fn bitor_assign(&mut self, other: WireI16)
fn bitor_assign(&mut self, other: WireI16)
Performs the
|=
operation. Read more§impl BitXorAssign<&WireI16> for WireI16
impl BitXorAssign<&WireI16> for WireI16
§fn bitxor_assign(&mut self, other: &WireI16)
fn bitxor_assign(&mut self, other: &WireI16)
Performs the
^=
operation. Read more§impl BitXorAssign<&i16> for WireI16
impl BitXorAssign<&i16> for WireI16
§fn bitxor_assign(&mut self, other: &i16)
fn bitxor_assign(&mut self, other: &i16)
Performs the
^=
operation. Read more§impl BitXorAssign<i16> for WireI16
impl BitXorAssign<i16> for WireI16
§fn bitxor_assign(&mut self, other: i16)
fn bitxor_assign(&mut self, other: i16)
Performs the
^=
operation. Read more§impl BitXorAssign for WireI16
impl BitXorAssign for WireI16
§fn bitxor_assign(&mut self, other: WireI16)
fn bitxor_assign(&mut self, other: WireI16)
Performs the
^=
operation. Read more§impl DivAssign<&WireI16> for WireI16
impl DivAssign<&WireI16> for WireI16
§fn div_assign(&mut self, other: &WireI16)
fn div_assign(&mut self, other: &WireI16)
Performs the
/=
operation. Read more§impl DivAssign<&i16> for WireI16
impl DivAssign<&i16> for WireI16
§fn div_assign(&mut self, other: &i16)
fn div_assign(&mut self, other: &i16)
Performs the
/=
operation. Read more§impl DivAssign<i16> for WireI16
impl DivAssign<i16> for WireI16
§fn div_assign(&mut self, other: i16)
fn div_assign(&mut self, other: i16)
Performs the
/=
operation. Read more§impl DivAssign for WireI16
impl DivAssign for WireI16
§fn div_assign(&mut self, other: WireI16)
fn div_assign(&mut self, other: WireI16)
Performs the
/=
operation. Read more§impl Encodable for WireI16
impl Encodable for WireI16
§const COPY_OPTIMIZATION: CopyOptimization<WireI16>
const COPY_OPTIMIZATION: CopyOptimization<WireI16>
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 WireI16
impl EncodableOption for WireI16
§type EncodedOption = WireBox<WireI16>
type EncodedOption = WireBox<WireI16>
The wire type for the optional value.
§impl<E> Encode<E> for WireI16where
E: ?Sized,
impl<E> Encode<E> for WireI16where
E: ?Sized,
§fn encode(
&mut self,
_: &mut E,
out: &mut MaybeUninit<<WireI16 as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode( &mut self, _: &mut E, out: &mut MaybeUninit<<WireI16 as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§impl<E> EncodeOption<E> for WireI16
impl<E> EncodeOption<E> for WireI16
§fn encode_option(
this: Option<&mut WireI16>,
encoder: &mut E,
out: &mut MaybeUninit<<WireI16 as EncodableOption>::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut WireI16>, encoder: &mut E, out: &mut MaybeUninit<<WireI16 as EncodableOption>::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
§impl FromBytes for WireI16where
i16: FromBytes,
impl FromBytes for WireI16where
i16: 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 WireI16
impl IntoBytes for WireI16
§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<&WireI16> for WireI16
impl MulAssign<&WireI16> for WireI16
§fn mul_assign(&mut self, other: &WireI16)
fn mul_assign(&mut self, other: &WireI16)
Performs the
*=
operation. Read more§impl MulAssign<&i16> for WireI16
impl MulAssign<&i16> for WireI16
§fn mul_assign(&mut self, other: &i16)
fn mul_assign(&mut self, other: &i16)
Performs the
*=
operation. Read more§impl MulAssign<i16> for WireI16
impl MulAssign<i16> for WireI16
§fn mul_assign(&mut self, other: i16)
fn mul_assign(&mut self, other: i16)
Performs the
*=
operation. Read more§impl MulAssign for WireI16
impl MulAssign for WireI16
§fn mul_assign(&mut self, other: WireI16)
fn mul_assign(&mut self, other: WireI16)
Performs the
*=
operation. Read more§impl Ord for WireI16
impl Ord for WireI16
§impl PartialOrd<i16> for WireI16
impl PartialOrd<i16> for WireI16
§impl PartialOrd for WireI16
impl PartialOrd for WireI16
§impl RemAssign<&WireI16> for WireI16
impl RemAssign<&WireI16> for WireI16
§fn rem_assign(&mut self, other: &WireI16)
fn rem_assign(&mut self, other: &WireI16)
Performs the
%=
operation. Read more§impl RemAssign<&i16> for WireI16
impl RemAssign<&i16> for WireI16
§fn rem_assign(&mut self, other: &i16)
fn rem_assign(&mut self, other: &i16)
Performs the
%=
operation. Read more§impl RemAssign<i16> for WireI16
impl RemAssign<i16> for WireI16
§fn rem_assign(&mut self, other: i16)
fn rem_assign(&mut self, other: i16)
Performs the
%=
operation. Read more§impl RemAssign for WireI16
impl RemAssign for WireI16
§fn rem_assign(&mut self, other: WireI16)
fn rem_assign(&mut self, other: WireI16)
Performs the
%=
operation. Read more§impl ShlAssign<&WireI16> for WireI16
impl ShlAssign<&WireI16> for WireI16
§fn shl_assign(&mut self, other: &WireI16)
fn shl_assign(&mut self, other: &WireI16)
Performs the
<<=
operation. Read more§impl ShlAssign<&i16> for WireI16
impl ShlAssign<&i16> for WireI16
§fn shl_assign(&mut self, other: &i16)
fn shl_assign(&mut self, other: &i16)
Performs the
<<=
operation. Read more§impl ShlAssign<i16> for WireI16
impl ShlAssign<i16> for WireI16
§fn shl_assign(&mut self, other: i16)
fn shl_assign(&mut self, other: i16)
Performs the
<<=
operation. Read more§impl ShlAssign for WireI16
impl ShlAssign for WireI16
§fn shl_assign(&mut self, other: WireI16)
fn shl_assign(&mut self, other: WireI16)
Performs the
<<=
operation. Read more§impl ShrAssign<&WireI16> for WireI16
impl ShrAssign<&WireI16> for WireI16
§fn shr_assign(&mut self, other: &WireI16)
fn shr_assign(&mut self, other: &WireI16)
Performs the
>>=
operation. Read more§impl ShrAssign<&i16> for WireI16
impl ShrAssign<&i16> for WireI16
§fn shr_assign(&mut self, other: &i16)
fn shr_assign(&mut self, other: &i16)
Performs the
>>=
operation. Read more§impl ShrAssign<i16> for WireI16
impl ShrAssign<i16> for WireI16
§fn shr_assign(&mut self, other: i16)
fn shr_assign(&mut self, other: i16)
Performs the
>>=
operation. Read more§impl ShrAssign for WireI16
impl ShrAssign for WireI16
§fn shr_assign(&mut self, other: WireI16)
fn shr_assign(&mut self, other: WireI16)
Performs the
>>=
operation. Read more§impl SubAssign<&WireI16> for WireI16
impl SubAssign<&WireI16> for WireI16
§fn sub_assign(&mut self, other: &WireI16)
fn sub_assign(&mut self, other: &WireI16)
Performs the
-=
operation. Read more§impl SubAssign<&i16> for WireI16
impl SubAssign<&i16> for WireI16
§fn sub_assign(&mut self, other: &i16)
fn sub_assign(&mut self, other: &i16)
Performs the
-=
operation. Read more§impl SubAssign<i16> for WireI16
impl SubAssign<i16> for WireI16
§fn sub_assign(&mut self, other: i16)
fn sub_assign(&mut self, other: i16)
Performs the
-=
operation. Read more§impl SubAssign for WireI16
impl SubAssign for WireI16
§fn sub_assign(&mut self, other: WireI16)
fn sub_assign(&mut self, other: WireI16)
Performs the
-=
operation. Read more§impl TakeFrom<WireI16> for WireI16
impl TakeFrom<WireI16> for WireI16
§const COPY_OPTIMIZATION: CopyOptimization<WireI16>
const COPY_OPTIMIZATION: CopyOptimization<WireI16>
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<WireI16> for i16
impl TakeFrom<WireI16> for i16
§const COPY_OPTIMIZATION: CopyOptimization<i16>
const COPY_OPTIMIZATION: CopyOptimization<i16>
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 WireI16where
i16: TryFromBytes,
impl TryFromBytes for WireI16where
i16: 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 WireI16
impl ZeroPadding for WireI16
§fn zero_padding(_: &mut MaybeUninit<WireI16>)
fn zero_padding(_: &mut MaybeUninit<WireI16>)
Writes zeroes to the padding for this type, if any.
impl Copy for WireI16
impl Eq for WireI16
Auto Trait Implementations§
impl Freeze for WireI16
impl RefUnwindSafe for WireI16
impl Send for WireI16
impl Sync for WireI16
impl Unpin for WireI16
impl UnwindSafe for WireI16
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