#[repr(C, align(2))]pub struct WireI16(pub i16);
Expand description
A wire-encoded i16
Tuple Fields§
§0: i16
Trait Implementations§
Source§impl AddAssign<&WireI16> for WireI16
impl AddAssign<&WireI16> for WireI16
Source§fn add_assign(&mut self, other: &WireI16)
fn add_assign(&mut self, other: &WireI16)
Performs the
+=
operation. Read moreSource§impl AddAssign<&i16> for WireI16
impl AddAssign<&i16> for WireI16
Source§fn add_assign(&mut self, other: &i16)
fn add_assign(&mut self, other: &i16)
Performs the
+=
operation. Read moreSource§impl AddAssign<i16> for WireI16
impl AddAssign<i16> for WireI16
Source§fn add_assign(&mut self, other: i16)
fn add_assign(&mut self, other: i16)
Performs the
+=
operation. Read moreSource§impl AddAssign for WireI16
impl AddAssign for WireI16
Source§fn add_assign(&mut self, other: WireI16)
fn add_assign(&mut self, other: WireI16)
Performs the
+=
operation. Read moreSource§impl BitAndAssign<&WireI16> for WireI16
impl BitAndAssign<&WireI16> for WireI16
Source§fn bitand_assign(&mut self, other: &WireI16)
fn bitand_assign(&mut self, other: &WireI16)
Performs the
&=
operation. Read moreSource§impl BitAndAssign<&i16> for WireI16
impl BitAndAssign<&i16> for WireI16
Source§fn bitand_assign(&mut self, other: &i16)
fn bitand_assign(&mut self, other: &i16)
Performs the
&=
operation. Read moreSource§impl BitAndAssign<i16> for WireI16
impl BitAndAssign<i16> for WireI16
Source§fn bitand_assign(&mut self, other: i16)
fn bitand_assign(&mut self, other: i16)
Performs the
&=
operation. Read moreSource§impl BitAndAssign for WireI16
impl BitAndAssign for WireI16
Source§fn bitand_assign(&mut self, other: WireI16)
fn bitand_assign(&mut self, other: WireI16)
Performs the
&=
operation. Read moreSource§impl BitOrAssign<&WireI16> for WireI16
impl BitOrAssign<&WireI16> for WireI16
Source§fn bitor_assign(&mut self, other: &WireI16)
fn bitor_assign(&mut self, other: &WireI16)
Performs the
|=
operation. Read moreSource§impl BitOrAssign<&i16> for WireI16
impl BitOrAssign<&i16> for WireI16
Source§fn bitor_assign(&mut self, other: &i16)
fn bitor_assign(&mut self, other: &i16)
Performs the
|=
operation. Read moreSource§impl BitOrAssign<i16> for WireI16
impl BitOrAssign<i16> for WireI16
Source§fn bitor_assign(&mut self, other: i16)
fn bitor_assign(&mut self, other: i16)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for WireI16
impl BitOrAssign for WireI16
Source§fn bitor_assign(&mut self, other: WireI16)
fn bitor_assign(&mut self, other: WireI16)
Performs the
|=
operation. Read moreSource§impl BitXorAssign<&WireI16> for WireI16
impl BitXorAssign<&WireI16> for WireI16
Source§fn bitxor_assign(&mut self, other: &WireI16)
fn bitxor_assign(&mut self, other: &WireI16)
Performs the
^=
operation. Read moreSource§impl BitXorAssign<&i16> for WireI16
impl BitXorAssign<&i16> for WireI16
Source§fn bitxor_assign(&mut self, other: &i16)
fn bitxor_assign(&mut self, other: &i16)
Performs the
^=
operation. Read moreSource§impl BitXorAssign<i16> for WireI16
impl BitXorAssign<i16> for WireI16
Source§fn bitxor_assign(&mut self, other: i16)
fn bitxor_assign(&mut self, other: i16)
Performs the
^=
operation. Read moreSource§impl BitXorAssign for WireI16
impl BitXorAssign for WireI16
Source§fn bitxor_assign(&mut self, other: WireI16)
fn bitxor_assign(&mut self, other: WireI16)
Performs the
^=
operation. Read moreSource§impl DivAssign<&WireI16> for WireI16
impl DivAssign<&WireI16> for WireI16
Source§fn div_assign(&mut self, other: &WireI16)
fn div_assign(&mut self, other: &WireI16)
Performs the
/=
operation. Read moreSource§impl DivAssign<&i16> for WireI16
impl DivAssign<&i16> for WireI16
Source§fn div_assign(&mut self, other: &i16)
fn div_assign(&mut self, other: &i16)
Performs the
/=
operation. Read moreSource§impl DivAssign<i16> for WireI16
impl DivAssign<i16> for WireI16
Source§fn div_assign(&mut self, other: i16)
fn div_assign(&mut self, other: i16)
Performs the
/=
operation. Read moreSource§impl DivAssign for WireI16
impl DivAssign for WireI16
Source§fn div_assign(&mut self, other: WireI16)
fn div_assign(&mut self, other: WireI16)
Performs the
/=
operation. Read moreSource§impl Encodable for WireI16
impl Encodable for WireI16
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for WireI16
impl EncodableOption for WireI16
Source§type EncodedOption = WireBox<WireI16>
type EncodedOption = WireBox<WireI16>
The wire type for the optional value.
Source§impl<E: Encoder + ?Sized> EncodeOption<E> for WireI16
impl<E: Encoder + ?Sized> EncodeOption<E> for WireI16
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut E,
slot: Slot<'_, Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut E, slot: Slot<'_, Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and slot.
Source§impl FromBytes for WireI16where
i16: FromBytes,
impl FromBytes for WireI16where
i16: FromBytes,
Source§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
Source§impl MulAssign<&WireI16> for WireI16
impl MulAssign<&WireI16> for WireI16
Source§fn mul_assign(&mut self, other: &WireI16)
fn mul_assign(&mut self, other: &WireI16)
Performs the
*=
operation. Read moreSource§impl MulAssign<&i16> for WireI16
impl MulAssign<&i16> for WireI16
Source§fn mul_assign(&mut self, other: &i16)
fn mul_assign(&mut self, other: &i16)
Performs the
*=
operation. Read moreSource§impl MulAssign<i16> for WireI16
impl MulAssign<i16> for WireI16
Source§fn mul_assign(&mut self, other: i16)
fn mul_assign(&mut self, other: i16)
Performs the
*=
operation. Read moreSource§impl MulAssign for WireI16
impl MulAssign for WireI16
Source§fn mul_assign(&mut self, other: WireI16)
fn mul_assign(&mut self, other: WireI16)
Performs the
*=
operation. Read moreSource§impl Ord for WireI16
impl Ord for WireI16
Source§impl PartialOrd<i16> for WireI16
impl PartialOrd<i16> for WireI16
Source§impl PartialOrd for WireI16
impl PartialOrd for WireI16
Source§impl RemAssign<&WireI16> for WireI16
impl RemAssign<&WireI16> for WireI16
Source§fn rem_assign(&mut self, other: &WireI16)
fn rem_assign(&mut self, other: &WireI16)
Performs the
%=
operation. Read moreSource§impl RemAssign<&i16> for WireI16
impl RemAssign<&i16> for WireI16
Source§fn rem_assign(&mut self, other: &i16)
fn rem_assign(&mut self, other: &i16)
Performs the
%=
operation. Read moreSource§impl RemAssign<i16> for WireI16
impl RemAssign<i16> for WireI16
Source§fn rem_assign(&mut self, other: i16)
fn rem_assign(&mut self, other: i16)
Performs the
%=
operation. Read moreSource§impl RemAssign for WireI16
impl RemAssign for WireI16
Source§fn rem_assign(&mut self, other: WireI16)
fn rem_assign(&mut self, other: WireI16)
Performs the
%=
operation. Read moreSource§impl ShlAssign<&WireI16> for WireI16
impl ShlAssign<&WireI16> for WireI16
Source§fn shl_assign(&mut self, other: &WireI16)
fn shl_assign(&mut self, other: &WireI16)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<&i16> for WireI16
impl ShlAssign<&i16> for WireI16
Source§fn shl_assign(&mut self, other: &i16)
fn shl_assign(&mut self, other: &i16)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<i16> for WireI16
impl ShlAssign<i16> for WireI16
Source§fn shl_assign(&mut self, other: i16)
fn shl_assign(&mut self, other: i16)
Performs the
<<=
operation. Read moreSource§impl ShlAssign for WireI16
impl ShlAssign for WireI16
Source§fn shl_assign(&mut self, other: WireI16)
fn shl_assign(&mut self, other: WireI16)
Performs the
<<=
operation. Read moreSource§impl ShrAssign<&WireI16> for WireI16
impl ShrAssign<&WireI16> for WireI16
Source§fn shr_assign(&mut self, other: &WireI16)
fn shr_assign(&mut self, other: &WireI16)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<&i16> for WireI16
impl ShrAssign<&i16> for WireI16
Source§fn shr_assign(&mut self, other: &i16)
fn shr_assign(&mut self, other: &i16)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<i16> for WireI16
impl ShrAssign<i16> for WireI16
Source§fn shr_assign(&mut self, other: i16)
fn shr_assign(&mut self, other: i16)
Performs the
>>=
operation. Read moreSource§impl ShrAssign for WireI16
impl ShrAssign for WireI16
Source§fn shr_assign(&mut self, other: WireI16)
fn shr_assign(&mut self, other: WireI16)
Performs the
>>=
operation. Read moreSource§impl SubAssign<&WireI16> for WireI16
impl SubAssign<&WireI16> for WireI16
Source§fn sub_assign(&mut self, other: &WireI16)
fn sub_assign(&mut self, other: &WireI16)
Performs the
-=
operation. Read moreSource§impl SubAssign<&i16> for WireI16
impl SubAssign<&i16> for WireI16
Source§fn sub_assign(&mut self, other: &i16)
fn sub_assign(&mut self, other: &i16)
Performs the
-=
operation. Read moreSource§impl SubAssign<i16> for WireI16
impl SubAssign<i16> for WireI16
Source§fn sub_assign(&mut self, other: i16)
fn sub_assign(&mut self, other: i16)
Performs the
-=
operation. Read moreSource§impl SubAssign for WireI16
impl SubAssign for WireI16
Source§fn sub_assign(&mut self, other: WireI16)
fn sub_assign(&mut self, other: WireI16)
Performs the
-=
operation. Read moreSource§impl TakeFrom<WireI16> for WireI16
impl TakeFrom<WireI16> for WireI16
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§impl TakeFrom<WireI16> for i16
impl TakeFrom<WireI16> for i16
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§impl TryFromBytes for WireI16where
i16: TryFromBytes,
impl TryFromBytes for WireI16where
i16: TryFromBytes,
§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 ZeroPadding for WireI16
impl ZeroPadding for WireI16
Source§unsafe fn zero_padding(_: *mut Self)
unsafe fn zero_padding(_: *mut Self)
Writes zeroes to the padding for this type, if any. Read more
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