#[repr(C, align(2))]pub struct Int16(pub i16);Expand description
A wire-encoded i16
Tuple Fields§
§0: i16Trait Implementations§
Source§impl AddAssign<&Int16> for Int16
impl AddAssign<&Int16> for Int16
Source§fn add_assign(&mut self, other: &Int16)
fn add_assign(&mut self, other: &Int16)
Performs the
+= operation. Read moreSource§impl AddAssign<&i16> for Int16
impl AddAssign<&i16> for Int16
Source§fn add_assign(&mut self, other: &i16)
fn add_assign(&mut self, other: &i16)
Performs the
+= operation. Read moreSource§impl AddAssign<i16> for Int16
impl AddAssign<i16> for Int16
Source§fn add_assign(&mut self, other: i16)
fn add_assign(&mut self, other: i16)
Performs the
+= operation. Read moreSource§impl AddAssign for Int16
impl AddAssign for Int16
Source§fn add_assign(&mut self, other: Int16)
fn add_assign(&mut self, other: Int16)
Performs the
+= operation. Read moreSource§impl BitAndAssign<&Int16> for Int16
impl BitAndAssign<&Int16> for Int16
Source§fn bitand_assign(&mut self, other: &Int16)
fn bitand_assign(&mut self, other: &Int16)
Performs the
&= operation. Read moreSource§impl BitAndAssign<&i16> for Int16
impl BitAndAssign<&i16> for Int16
Source§fn bitand_assign(&mut self, other: &i16)
fn bitand_assign(&mut self, other: &i16)
Performs the
&= operation. Read moreSource§impl BitAndAssign<i16> for Int16
impl BitAndAssign<i16> for Int16
Source§fn bitand_assign(&mut self, other: i16)
fn bitand_assign(&mut self, other: i16)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Int16
impl BitAndAssign for Int16
Source§fn bitand_assign(&mut self, other: Int16)
fn bitand_assign(&mut self, other: Int16)
Performs the
&= operation. Read moreSource§impl BitOrAssign<&Int16> for Int16
impl BitOrAssign<&Int16> for Int16
Source§fn bitor_assign(&mut self, other: &Int16)
fn bitor_assign(&mut self, other: &Int16)
Performs the
|= operation. Read moreSource§impl BitOrAssign<&i16> for Int16
impl BitOrAssign<&i16> for Int16
Source§fn bitor_assign(&mut self, other: &i16)
fn bitor_assign(&mut self, other: &i16)
Performs the
|= operation. Read moreSource§impl BitOrAssign<i16> for Int16
impl BitOrAssign<i16> for Int16
Source§fn bitor_assign(&mut self, other: i16)
fn bitor_assign(&mut self, other: i16)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Int16
impl BitOrAssign for Int16
Source§fn bitor_assign(&mut self, other: Int16)
fn bitor_assign(&mut self, other: Int16)
Performs the
|= operation. Read moreSource§impl BitXorAssign<&Int16> for Int16
impl BitXorAssign<&Int16> for Int16
Source§fn bitxor_assign(&mut self, other: &Int16)
fn bitxor_assign(&mut self, other: &Int16)
Performs the
^= operation. Read moreSource§impl BitXorAssign<&i16> for Int16
impl BitXorAssign<&i16> for Int16
Source§fn bitxor_assign(&mut self, other: &i16)
fn bitxor_assign(&mut self, other: &i16)
Performs the
^= operation. Read moreSource§impl BitXorAssign<i16> for Int16
impl BitXorAssign<i16> for Int16
Source§fn bitxor_assign(&mut self, other: i16)
fn bitxor_assign(&mut self, other: i16)
Performs the
^= operation. Read moreSource§impl BitXorAssign for Int16
impl BitXorAssign for Int16
Source§fn bitxor_assign(&mut self, other: Int16)
fn bitxor_assign(&mut self, other: Int16)
Performs the
^= operation. Read moreSource§impl Constrained for Int16
impl Constrained for Int16
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, Int16>,
_: <Int16 as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, Int16>, _: <Int16 as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl DivAssign<&Int16> for Int16
impl DivAssign<&Int16> for Int16
Source§fn div_assign(&mut self, other: &Int16)
fn div_assign(&mut self, other: &Int16)
Performs the
/= operation. Read moreSource§impl DivAssign<&i16> for Int16
impl DivAssign<&i16> for Int16
Source§fn div_assign(&mut self, other: &i16)
fn div_assign(&mut self, other: &i16)
Performs the
/= operation. Read moreSource§impl DivAssign<i16> for Int16
impl DivAssign<i16> for Int16
Source§fn div_assign(&mut self, other: i16)
fn div_assign(&mut self, other: i16)
Performs the
/= operation. Read moreSource§impl DivAssign for Int16
impl DivAssign for Int16
Source§fn div_assign(&mut self, other: Int16)
fn div_assign(&mut self, other: Int16)
Performs the
/= operation. Read moreSource§impl<E> Encode<Int16, E> for &Int16where
E: ?Sized,
impl<E> Encode<Int16, E> for &Int16where
E: ?Sized,
Source§fn encode(
self,
_: &mut E,
out: &mut MaybeUninit<Int16>,
_: <Int16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, out: &mut MaybeUninit<Int16>, _: <Int16 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<Int16, E> for &i16where
E: ?Sized,
impl<E> Encode<Int16, E> for &i16where
E: ?Sized,
Source§fn encode(
self,
_: &mut E,
out: &mut MaybeUninit<Int16>,
_: <Int16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, _: &mut E, out: &mut MaybeUninit<Int16>, _: <Int16 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<Int16, E> for Int16where
E: ?Sized,
impl<E> Encode<Int16, E> for Int16where
E: ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Int16, Int16> = crate::CopyOptimization<Int16, Int16>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<Int16, Int16> = crate::CopyOptimization<Int16, Int16>::PRIMITIVE
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Int16>,
constraint: <Int16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Int16>, constraint: <Int16 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<E> Encode<Int16, E> for i16where
E: ?Sized,
impl<E> Encode<Int16, E> for i16where
E: ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<i16, Int16> = crate::CopyOptimization<i16, Int16>::PRIMITIVE
const COPY_OPTIMIZATION: CopyOptimization<i16, Int16> = crate::CopyOptimization<i16, Int16>::PRIMITIVE
Source§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<Int16>,
constraint: <Int16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<Int16>, constraint: <Int16 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<E> EncodeOption<Box<'static, Int16>, E> for &Int16
impl<E> EncodeOption<Box<'static, Int16>, E> for &Int16
Source§fn encode_option(
this: Option<&Int16>,
encoder: &mut E,
out: &mut MaybeUninit<Box<'static, Int16>>,
constraint: <Int16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&Int16>, encoder: &mut E, out: &mut MaybeUninit<Box<'static, Int16>>, constraint: <Int16 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<E> EncodeOption<Box<'static, Int16>, E> for Int16
impl<E> EncodeOption<Box<'static, Int16>, E> for Int16
Source§fn encode_option(
this: Option<Int16>,
encoder: &mut E,
out: &mut MaybeUninit<Box<'static, Int16>>,
constraint: <Int16 as Constrained>::Constraint,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Int16>, encoder: &mut E, out: &mut MaybeUninit<Box<'static, Int16>>, constraint: <Int16 as Constrained>::Constraint, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromBytes for Int16where
i16: FromBytes,
impl FromBytes for Int16where
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>,
Source§impl FromWireRef<Int16> for i16
impl FromWireRef<Int16> for i16
Source§fn from_wire_ref(wire: &Int16) -> i16
fn from_wire_ref(wire: &Int16) -> i16
Converts the given reference to this type.
Source§impl FromZeros for Int16where
i16: FromZeros,
impl FromZeros for Int16where
i16: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read more§fn new_box_zeroed_with_elems(count: usize) -> Result<Box<Self>, AllocError>where
Self: KnownLayout<PointerMetadata = usize>,
fn new_box_zeroed_with_elems(count: usize) -> Result<Box<Self>, AllocError>where
Self: KnownLayout<PointerMetadata = usize>,
Creates a
Box<[Self]> (a boxed slice) from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Creates a
Vec<Self> from zeroed bytes. Read moreSource§impl IntoBytes for Int16
impl IntoBytes for Int16
§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 Int16
impl IntoNatural for Int16
Source§impl MulAssign<&Int16> for Int16
impl MulAssign<&Int16> for Int16
Source§fn mul_assign(&mut self, other: &Int16)
fn mul_assign(&mut self, other: &Int16)
Performs the
*= operation. Read moreSource§impl MulAssign<&i16> for Int16
impl MulAssign<&i16> for Int16
Source§fn mul_assign(&mut self, other: &i16)
fn mul_assign(&mut self, other: &i16)
Performs the
*= operation. Read moreSource§impl MulAssign<i16> for Int16
impl MulAssign<i16> for Int16
Source§fn mul_assign(&mut self, other: i16)
fn mul_assign(&mut self, other: i16)
Performs the
*= operation. Read moreSource§impl MulAssign for Int16
impl MulAssign for Int16
Source§fn mul_assign(&mut self, other: Int16)
fn mul_assign(&mut self, other: Int16)
Performs the
*= operation. Read moreSource§impl Ord for Int16
impl Ord for Int16
Source§impl PartialOrd<i16> for Int16
impl PartialOrd<i16> for Int16
Source§impl PartialOrd for Int16
impl PartialOrd for Int16
Source§impl RemAssign<&Int16> for Int16
impl RemAssign<&Int16> for Int16
Source§fn rem_assign(&mut self, other: &Int16)
fn rem_assign(&mut self, other: &Int16)
Performs the
%= operation. Read moreSource§impl RemAssign<&i16> for Int16
impl RemAssign<&i16> for Int16
Source§fn rem_assign(&mut self, other: &i16)
fn rem_assign(&mut self, other: &i16)
Performs the
%= operation. Read moreSource§impl RemAssign<i16> for Int16
impl RemAssign<i16> for Int16
Source§fn rem_assign(&mut self, other: i16)
fn rem_assign(&mut self, other: i16)
Performs the
%= operation. Read moreSource§impl RemAssign for Int16
impl RemAssign for Int16
Source§fn rem_assign(&mut self, other: Int16)
fn rem_assign(&mut self, other: Int16)
Performs the
%= operation. Read moreSource§impl ShlAssign<&Int16> for Int16
impl ShlAssign<&Int16> for Int16
Source§fn shl_assign(&mut self, other: &Int16)
fn shl_assign(&mut self, other: &Int16)
Performs the
<<= operation. Read moreSource§impl ShlAssign<&i16> for Int16
impl ShlAssign<&i16> for Int16
Source§fn shl_assign(&mut self, other: &i16)
fn shl_assign(&mut self, other: &i16)
Performs the
<<= operation. Read moreSource§impl ShlAssign<i16> for Int16
impl ShlAssign<i16> for Int16
Source§fn shl_assign(&mut self, other: i16)
fn shl_assign(&mut self, other: i16)
Performs the
<<= operation. Read moreSource§impl ShlAssign for Int16
impl ShlAssign for Int16
Source§fn shl_assign(&mut self, other: Int16)
fn shl_assign(&mut self, other: Int16)
Performs the
<<= operation. Read moreSource§impl ShrAssign<&Int16> for Int16
impl ShrAssign<&Int16> for Int16
Source§fn shr_assign(&mut self, other: &Int16)
fn shr_assign(&mut self, other: &Int16)
Performs the
>>= operation. Read moreSource§impl ShrAssign<&i16> for Int16
impl ShrAssign<&i16> for Int16
Source§fn shr_assign(&mut self, other: &i16)
fn shr_assign(&mut self, other: &i16)
Performs the
>>= operation. Read moreSource§impl ShrAssign<i16> for Int16
impl ShrAssign<i16> for Int16
Source§fn shr_assign(&mut self, other: i16)
fn shr_assign(&mut self, other: i16)
Performs the
>>= operation. Read moreSource§impl ShrAssign for Int16
impl ShrAssign for Int16
Source§fn shr_assign(&mut self, other: Int16)
fn shr_assign(&mut self, other: Int16)
Performs the
>>= operation. Read moreSource§impl SubAssign<&Int16> for Int16
impl SubAssign<&Int16> for Int16
Source§fn sub_assign(&mut self, other: &Int16)
fn sub_assign(&mut self, other: &Int16)
Performs the
-= operation. Read moreSource§impl SubAssign<&i16> for Int16
impl SubAssign<&i16> for Int16
Source§fn sub_assign(&mut self, other: &i16)
fn sub_assign(&mut self, other: &i16)
Performs the
-= operation. Read moreSource§impl SubAssign<i16> for Int16
impl SubAssign<i16> for Int16
Source§fn sub_assign(&mut self, other: i16)
fn sub_assign(&mut self, other: i16)
Performs the
-= operation. Read moreSource§impl SubAssign for Int16
impl SubAssign for Int16
Source§fn sub_assign(&mut self, other: Int16)
fn sub_assign(&mut self, other: Int16)
Performs the
-= operation. Read moreSource§impl TryFromBytes for Int16where
i16: TryFromBytes,
impl TryFromBytes for Int16where
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,
Source§impl Wire for Int16
impl Wire for Int16
Source§fn zero_padding(_: &mut MaybeUninit<Int16>)
fn zero_padding(_: &mut MaybeUninit<Int16>)
Writes zeroes to the padding for this type, if any.
impl Copy for Int16
impl Eq for Int16
Auto Trait Implementations§
impl Freeze for Int16
impl RefUnwindSafe for Int16
impl Send for Int16
impl Sync for Int16
impl Unpin for Int16
impl UnsafeUnpin for Int16
impl UnwindSafe for Int16
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> 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