#[repr(C, align(2))]pub struct WireU16(pub u16);Expand description
A wire-encoded u16
Tuple Fields§
§0: u16Trait Implementations§
Source§impl AddAssign<&WireU16> for WireU16
impl AddAssign<&WireU16> for WireU16
Source§fn add_assign(&mut self, other: &WireU16)
fn add_assign(&mut self, other: &WireU16)
Performs the
+= operation. Read moreSource§impl AddAssign<&u16> for WireU16
impl AddAssign<&u16> for WireU16
Source§fn add_assign(&mut self, other: &u16)
fn add_assign(&mut self, other: &u16)
Performs the
+= operation. Read moreSource§impl AddAssign<u16> for WireU16
impl AddAssign<u16> for WireU16
Source§fn add_assign(&mut self, other: u16)
fn add_assign(&mut self, other: u16)
Performs the
+= operation. Read moreSource§impl AddAssign for WireU16
impl AddAssign for WireU16
Source§fn add_assign(&mut self, other: WireU16)
fn add_assign(&mut self, other: WireU16)
Performs the
+= operation. Read moreSource§impl BitAndAssign<&WireU16> for WireU16
impl BitAndAssign<&WireU16> for WireU16
Source§fn bitand_assign(&mut self, other: &WireU16)
fn bitand_assign(&mut self, other: &WireU16)
Performs the
&= operation. Read moreSource§impl BitAndAssign<&u16> for WireU16
impl BitAndAssign<&u16> for WireU16
Source§fn bitand_assign(&mut self, other: &u16)
fn bitand_assign(&mut self, other: &u16)
Performs the
&= operation. Read moreSource§impl BitAndAssign<u16> for WireU16
impl BitAndAssign<u16> for WireU16
Source§fn bitand_assign(&mut self, other: u16)
fn bitand_assign(&mut self, other: u16)
Performs the
&= operation. Read moreSource§impl BitAndAssign for WireU16
impl BitAndAssign for WireU16
Source§fn bitand_assign(&mut self, other: WireU16)
fn bitand_assign(&mut self, other: WireU16)
Performs the
&= operation. Read moreSource§impl BitOrAssign<&WireU16> for WireU16
impl BitOrAssign<&WireU16> for WireU16
Source§fn bitor_assign(&mut self, other: &WireU16)
fn bitor_assign(&mut self, other: &WireU16)
Performs the
|= operation. Read moreSource§impl BitOrAssign<&u16> for WireU16
impl BitOrAssign<&u16> for WireU16
Source§fn bitor_assign(&mut self, other: &u16)
fn bitor_assign(&mut self, other: &u16)
Performs the
|= operation. Read moreSource§impl BitOrAssign<u16> for WireU16
impl BitOrAssign<u16> for WireU16
Source§fn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the
|= operation. Read moreSource§impl BitOrAssign for WireU16
impl BitOrAssign for WireU16
Source§fn bitor_assign(&mut self, other: WireU16)
fn bitor_assign(&mut self, other: WireU16)
Performs the
|= operation. Read moreSource§impl BitXorAssign<&WireU16> for WireU16
impl BitXorAssign<&WireU16> for WireU16
Source§fn bitxor_assign(&mut self, other: &WireU16)
fn bitxor_assign(&mut self, other: &WireU16)
Performs the
^= operation. Read moreSource§impl BitXorAssign<&u16> for WireU16
impl BitXorAssign<&u16> for WireU16
Source§fn bitxor_assign(&mut self, other: &u16)
fn bitxor_assign(&mut self, other: &u16)
Performs the
^= operation. Read moreSource§impl BitXorAssign<u16> for WireU16
impl BitXorAssign<u16> for WireU16
Source§fn bitxor_assign(&mut self, other: u16)
fn bitxor_assign(&mut self, other: u16)
Performs the
^= operation. Read moreSource§impl BitXorAssign for WireU16
impl BitXorAssign for WireU16
Source§fn bitxor_assign(&mut self, other: WireU16)
fn bitxor_assign(&mut self, other: WireU16)
Performs the
^= operation. Read moreSource§impl DivAssign<&WireU16> for WireU16
impl DivAssign<&WireU16> for WireU16
Source§fn div_assign(&mut self, other: &WireU16)
fn div_assign(&mut self, other: &WireU16)
Performs the
/= operation. Read moreSource§impl DivAssign<&u16> for WireU16
impl DivAssign<&u16> for WireU16
Source§fn div_assign(&mut self, other: &u16)
fn div_assign(&mut self, other: &u16)
Performs the
/= operation. Read moreSource§impl DivAssign<u16> for WireU16
impl DivAssign<u16> for WireU16
Source§fn div_assign(&mut self, other: u16)
fn div_assign(&mut self, other: u16)
Performs the
/= operation. Read moreSource§impl DivAssign for WireU16
impl DivAssign for WireU16
Source§fn div_assign(&mut self, other: WireU16)
fn div_assign(&mut self, other: WireU16)
Performs the
/= operation. Read moreSource§impl<'a, E> Encode<WireU16, E> for &'a WireU16where
E: ?Sized,
impl<'a, E> Encode<WireU16, E> for &'a WireU16where
E: ?Sized,
Source§fn encode(
self,
_: &mut E,
out: &mut MaybeUninit<WireU16>,
_constraint: <WireU16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, out: &mut MaybeUninit<WireU16>, _constraint: <WireU16 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'a, E> Encode<WireU16, E> for &'a u16where
E: ?Sized,
impl<'a, E> Encode<WireU16, E> for &'a u16where
E: ?Sized,
Source§fn encode(
self,
_: &mut E,
out: &mut MaybeUninit<WireU16>,
_constraint: <WireU16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, out: &mut MaybeUninit<WireU16>, _constraint: <WireU16 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<E> Encode<WireU16, E> for WireU16where
E: ?Sized,
impl<E> Encode<WireU16, E> for WireU16where
E: ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<WireU16, WireU16> = CopyOptimization<WireU16, WireU16>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<WireU16, WireU16> = CopyOptimization<WireU16, WireU16>::PRIMITIVE
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<WireU16>,
constraint: <WireU16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<WireU16>, constraint: <WireU16 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<E> Encode<WireU16, E> for u16where
E: ?Sized,
impl<E> Encode<WireU16, E> for u16where
E: ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<u16, WireU16> = CopyOptimization<u16, WireU16>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<u16, WireU16> = CopyOptimization<u16, WireU16>::PRIMITIVE
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<WireU16>,
constraint: <WireU16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<WireU16>, constraint: <WireU16 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<E> EncodeOption<WireBox<'static, WireU16>, E> for &WireU16
impl<E> EncodeOption<WireBox<'static, WireU16>, E> for &WireU16
Source§fn encode_option(
this: Option<&WireU16>,
encoder: &mut E,
out: &mut MaybeUninit<WireBox<'static, WireU16>>,
constraint: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<&WireU16>, encoder: &mut E, out: &mut MaybeUninit<WireBox<'static, WireU16>>, constraint: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<E> EncodeOption<WireBox<'static, WireU16>, E> for WireU16
impl<E> EncodeOption<WireBox<'static, WireU16>, E> for WireU16
Source§fn encode_option(
this: Option<WireU16>,
encoder: &mut E,
out: &mut MaybeUninit<WireBox<'static, WireU16>>,
constraint: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<WireU16>, encoder: &mut E, out: &mut MaybeUninit<WireBox<'static, WireU16>>, constraint: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromBytes for WireU16where
u16: FromBytes,
impl FromBytes for WireU16where
u16: 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<WireU16> for WireU16
impl FromWireRef<WireU16> for WireU16
Source§fn from_wire_ref(wire: &WireU16) -> WireU16
fn from_wire_ref(wire: &WireU16) -> WireU16
Converts the given
wire reference to this type.Source§impl FromWireRef<WireU16> for u16
impl FromWireRef<WireU16> for u16
Source§fn from_wire_ref(wire: &WireU16) -> u16
fn from_wire_ref(wire: &WireU16) -> u16
Converts the given
wire reference to this type.Source§impl IntoBytes for WireU16
impl IntoBytes for WireU16
§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 WireU16
impl IntoNatural for WireU16
Source§impl MulAssign<&WireU16> for WireU16
impl MulAssign<&WireU16> for WireU16
Source§fn mul_assign(&mut self, other: &WireU16)
fn mul_assign(&mut self, other: &WireU16)
Performs the
*= operation. Read moreSource§impl MulAssign<&u16> for WireU16
impl MulAssign<&u16> for WireU16
Source§fn mul_assign(&mut self, other: &u16)
fn mul_assign(&mut self, other: &u16)
Performs the
*= operation. Read moreSource§impl MulAssign<u16> for WireU16
impl MulAssign<u16> for WireU16
Source§fn mul_assign(&mut self, other: u16)
fn mul_assign(&mut self, other: u16)
Performs the
*= operation. Read moreSource§impl MulAssign for WireU16
impl MulAssign for WireU16
Source§fn mul_assign(&mut self, other: WireU16)
fn mul_assign(&mut self, other: WireU16)
Performs the
*= operation. Read moreSource§impl Ord for WireU16
impl Ord for WireU16
Source§impl PartialOrd<u16> for WireU16
impl PartialOrd<u16> for WireU16
Source§impl PartialOrd for WireU16
impl PartialOrd for WireU16
Source§impl RemAssign<&WireU16> for WireU16
impl RemAssign<&WireU16> for WireU16
Source§fn rem_assign(&mut self, other: &WireU16)
fn rem_assign(&mut self, other: &WireU16)
Performs the
%= operation. Read moreSource§impl RemAssign<&u16> for WireU16
impl RemAssign<&u16> for WireU16
Source§fn rem_assign(&mut self, other: &u16)
fn rem_assign(&mut self, other: &u16)
Performs the
%= operation. Read moreSource§impl RemAssign<u16> for WireU16
impl RemAssign<u16> for WireU16
Source§fn rem_assign(&mut self, other: u16)
fn rem_assign(&mut self, other: u16)
Performs the
%= operation. Read moreSource§impl RemAssign for WireU16
impl RemAssign for WireU16
Source§fn rem_assign(&mut self, other: WireU16)
fn rem_assign(&mut self, other: WireU16)
Performs the
%= operation. Read moreSource§impl ShlAssign<&WireU16> for WireU16
impl ShlAssign<&WireU16> for WireU16
Source§fn shl_assign(&mut self, other: &WireU16)
fn shl_assign(&mut self, other: &WireU16)
Performs the
<<= operation. Read moreSource§impl ShlAssign<&u16> for WireU16
impl ShlAssign<&u16> for WireU16
Source§fn shl_assign(&mut self, other: &u16)
fn shl_assign(&mut self, other: &u16)
Performs the
<<= operation. Read moreSource§impl ShlAssign<u16> for WireU16
impl ShlAssign<u16> for WireU16
Source§fn shl_assign(&mut self, other: u16)
fn shl_assign(&mut self, other: u16)
Performs the
<<= operation. Read moreSource§impl ShlAssign for WireU16
impl ShlAssign for WireU16
Source§fn shl_assign(&mut self, other: WireU16)
fn shl_assign(&mut self, other: WireU16)
Performs the
<<= operation. Read moreSource§impl ShrAssign<&WireU16> for WireU16
impl ShrAssign<&WireU16> for WireU16
Source§fn shr_assign(&mut self, other: &WireU16)
fn shr_assign(&mut self, other: &WireU16)
Performs the
>>= operation. Read moreSource§impl ShrAssign<&u16> for WireU16
impl ShrAssign<&u16> for WireU16
Source§fn shr_assign(&mut self, other: &u16)
fn shr_assign(&mut self, other: &u16)
Performs the
>>= operation. Read moreSource§impl ShrAssign<u16> for WireU16
impl ShrAssign<u16> for WireU16
Source§fn shr_assign(&mut self, other: u16)
fn shr_assign(&mut self, other: u16)
Performs the
>>= operation. Read moreSource§impl ShrAssign for WireU16
impl ShrAssign for WireU16
Source§fn shr_assign(&mut self, other: WireU16)
fn shr_assign(&mut self, other: WireU16)
Performs the
>>= operation. Read moreSource§impl SubAssign<&WireU16> for WireU16
impl SubAssign<&WireU16> for WireU16
Source§fn sub_assign(&mut self, other: &WireU16)
fn sub_assign(&mut self, other: &WireU16)
Performs the
-= operation. Read moreSource§impl SubAssign<&u16> for WireU16
impl SubAssign<&u16> for WireU16
Source§fn sub_assign(&mut self, other: &u16)
fn sub_assign(&mut self, other: &u16)
Performs the
-= operation. Read moreSource§impl SubAssign<u16> for WireU16
impl SubAssign<u16> for WireU16
Source§fn sub_assign(&mut self, other: u16)
fn sub_assign(&mut self, other: u16)
Performs the
-= operation. Read moreSource§impl SubAssign for WireU16
impl SubAssign for WireU16
Source§fn sub_assign(&mut self, other: WireU16)
fn sub_assign(&mut self, other: WireU16)
Performs the
-= operation. Read moreSource§impl TryFromBytes for WireU16where
u16: TryFromBytes,
impl TryFromBytes for WireU16where
u16: 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 WireU16
impl Wire for WireU16
Source§fn zero_padding(_: &mut MaybeUninit<WireU16>)
fn zero_padding(_: &mut MaybeUninit<WireU16>)
Writes zeroes to the padding for this type, if any.
impl Copy for WireU16
impl Eq for WireU16
impl Unconstrained for WireU16
Auto Trait Implementations§
impl Freeze for WireU16
impl RefUnwindSafe for WireU16
impl Send for WireU16
impl Sync for WireU16
impl Unpin for WireU16
impl UnwindSafe for WireU16
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> Constrained for Twhere
T: Unconstrained,
impl<T> Constrained for Twhere
T: Unconstrained,
§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.Source§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to Self