#[repr(C, align(4))]pub struct WireU32(pub u32);
Expand description
A wire-encoded u32
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl AddAssign<&WireU32> for WireU32
impl AddAssign<&WireU32> for WireU32
Source§fn add_assign(&mut self, other: &WireU32)
fn add_assign(&mut self, other: &WireU32)
Performs the
+=
operation. Read moreSource§impl AddAssign<&u32> for WireU32
impl AddAssign<&u32> for WireU32
Source§fn add_assign(&mut self, other: &u32)
fn add_assign(&mut self, other: &u32)
Performs the
+=
operation. Read moreSource§impl AddAssign<u32> for WireU32
impl AddAssign<u32> for WireU32
Source§fn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
Performs the
+=
operation. Read moreSource§impl AddAssign for WireU32
impl AddAssign for WireU32
Source§fn add_assign(&mut self, other: WireU32)
fn add_assign(&mut self, other: WireU32)
Performs the
+=
operation. Read moreSource§impl BitAndAssign<&WireU32> for WireU32
impl BitAndAssign<&WireU32> for WireU32
Source§fn bitand_assign(&mut self, other: &WireU32)
fn bitand_assign(&mut self, other: &WireU32)
Performs the
&=
operation. Read moreSource§impl BitAndAssign<&u32> for WireU32
impl BitAndAssign<&u32> for WireU32
Source§fn bitand_assign(&mut self, other: &u32)
fn bitand_assign(&mut self, other: &u32)
Performs the
&=
operation. Read moreSource§impl BitAndAssign<u32> for WireU32
impl BitAndAssign<u32> for WireU32
Source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moreSource§impl BitAndAssign for WireU32
impl BitAndAssign for WireU32
Source§fn bitand_assign(&mut self, other: WireU32)
fn bitand_assign(&mut self, other: WireU32)
Performs the
&=
operation. Read moreSource§impl BitOrAssign<&WireU32> for WireU32
impl BitOrAssign<&WireU32> for WireU32
Source§fn bitor_assign(&mut self, other: &WireU32)
fn bitor_assign(&mut self, other: &WireU32)
Performs the
|=
operation. Read moreSource§impl BitOrAssign<&u32> for WireU32
impl BitOrAssign<&u32> for WireU32
Source§fn bitor_assign(&mut self, other: &u32)
fn bitor_assign(&mut self, other: &u32)
Performs the
|=
operation. Read moreSource§impl BitOrAssign<u32> for WireU32
impl BitOrAssign<u32> for WireU32
Source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for WireU32
impl BitOrAssign for WireU32
Source§fn bitor_assign(&mut self, other: WireU32)
fn bitor_assign(&mut self, other: WireU32)
Performs the
|=
operation. Read moreSource§impl BitXorAssign<&WireU32> for WireU32
impl BitXorAssign<&WireU32> for WireU32
Source§fn bitxor_assign(&mut self, other: &WireU32)
fn bitxor_assign(&mut self, other: &WireU32)
Performs the
^=
operation. Read moreSource§impl BitXorAssign<&u32> for WireU32
impl BitXorAssign<&u32> for WireU32
Source§fn bitxor_assign(&mut self, other: &u32)
fn bitxor_assign(&mut self, other: &u32)
Performs the
^=
operation. Read moreSource§impl BitXorAssign<u32> for WireU32
impl BitXorAssign<u32> for WireU32
Source§fn bitxor_assign(&mut self, other: u32)
fn bitxor_assign(&mut self, other: u32)
Performs the
^=
operation. Read moreSource§impl BitXorAssign for WireU32
impl BitXorAssign for WireU32
Source§fn bitxor_assign(&mut self, other: WireU32)
fn bitxor_assign(&mut self, other: WireU32)
Performs the
^=
operation. Read moreSource§impl DivAssign<&WireU32> for WireU32
impl DivAssign<&WireU32> for WireU32
Source§fn div_assign(&mut self, other: &WireU32)
fn div_assign(&mut self, other: &WireU32)
Performs the
/=
operation. Read moreSource§impl DivAssign<&u32> for WireU32
impl DivAssign<&u32> for WireU32
Source§fn div_assign(&mut self, other: &u32)
fn div_assign(&mut self, other: &u32)
Performs the
/=
operation. Read moreSource§impl DivAssign<u32> for WireU32
impl DivAssign<u32> for WireU32
Source§fn div_assign(&mut self, other: u32)
fn div_assign(&mut self, other: u32)
Performs the
/=
operation. Read moreSource§impl DivAssign for WireU32
impl DivAssign for WireU32
Source§fn div_assign(&mut self, other: WireU32)
fn div_assign(&mut self, other: WireU32)
Performs the
/=
operation. Read moreSource§impl Encodable for WireU32
impl Encodable for WireU32
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 WireU32
impl EncodableOption for WireU32
Source§type EncodedOption = WireBox<WireU32>
type EncodedOption = WireBox<WireU32>
The wire type for the optional value.
Source§impl<E: Encoder + ?Sized> EncodeOption<E> for WireU32
impl<E: Encoder + ?Sized> EncodeOption<E> for WireU32
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 WireU32where
u32: FromBytes,
impl FromBytes for WireU32where
u32: FromBytes,
Source§impl IntoBytes for WireU32
impl IntoBytes for WireU32
§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<&WireU32> for WireU32
impl MulAssign<&WireU32> for WireU32
Source§fn mul_assign(&mut self, other: &WireU32)
fn mul_assign(&mut self, other: &WireU32)
Performs the
*=
operation. Read moreSource§impl MulAssign<&u32> for WireU32
impl MulAssign<&u32> for WireU32
Source§fn mul_assign(&mut self, other: &u32)
fn mul_assign(&mut self, other: &u32)
Performs the
*=
operation. Read moreSource§impl MulAssign<u32> for WireU32
impl MulAssign<u32> for WireU32
Source§fn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
Performs the
*=
operation. Read moreSource§impl MulAssign for WireU32
impl MulAssign for WireU32
Source§fn mul_assign(&mut self, other: WireU32)
fn mul_assign(&mut self, other: WireU32)
Performs the
*=
operation. Read moreSource§impl Ord for WireU32
impl Ord for WireU32
Source§impl PartialOrd<u32> for WireU32
impl PartialOrd<u32> for WireU32
Source§impl PartialOrd for WireU32
impl PartialOrd for WireU32
Source§impl RemAssign<&WireU32> for WireU32
impl RemAssign<&WireU32> for WireU32
Source§fn rem_assign(&mut self, other: &WireU32)
fn rem_assign(&mut self, other: &WireU32)
Performs the
%=
operation. Read moreSource§impl RemAssign<&u32> for WireU32
impl RemAssign<&u32> for WireU32
Source§fn rem_assign(&mut self, other: &u32)
fn rem_assign(&mut self, other: &u32)
Performs the
%=
operation. Read moreSource§impl RemAssign<u32> for WireU32
impl RemAssign<u32> for WireU32
Source§fn rem_assign(&mut self, other: u32)
fn rem_assign(&mut self, other: u32)
Performs the
%=
operation. Read moreSource§impl RemAssign for WireU32
impl RemAssign for WireU32
Source§fn rem_assign(&mut self, other: WireU32)
fn rem_assign(&mut self, other: WireU32)
Performs the
%=
operation. Read moreSource§impl ShlAssign<&WireU32> for WireU32
impl ShlAssign<&WireU32> for WireU32
Source§fn shl_assign(&mut self, other: &WireU32)
fn shl_assign(&mut self, other: &WireU32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<&u32> for WireU32
impl ShlAssign<&u32> for WireU32
Source§fn shl_assign(&mut self, other: &u32)
fn shl_assign(&mut self, other: &u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for WireU32
impl ShlAssign<u32> for WireU32
Source§fn shl_assign(&mut self, other: u32)
fn shl_assign(&mut self, other: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign for WireU32
impl ShlAssign for WireU32
Source§fn shl_assign(&mut self, other: WireU32)
fn shl_assign(&mut self, other: WireU32)
Performs the
<<=
operation. Read moreSource§impl ShrAssign<&WireU32> for WireU32
impl ShrAssign<&WireU32> for WireU32
Source§fn shr_assign(&mut self, other: &WireU32)
fn shr_assign(&mut self, other: &WireU32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<&u32> for WireU32
impl ShrAssign<&u32> for WireU32
Source§fn shr_assign(&mut self, other: &u32)
fn shr_assign(&mut self, other: &u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for WireU32
impl ShrAssign<u32> for WireU32
Source§fn shr_assign(&mut self, other: u32)
fn shr_assign(&mut self, other: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign for WireU32
impl ShrAssign for WireU32
Source§fn shr_assign(&mut self, other: WireU32)
fn shr_assign(&mut self, other: WireU32)
Performs the
>>=
operation. Read moreSource§impl SubAssign<&WireU32> for WireU32
impl SubAssign<&WireU32> for WireU32
Source§fn sub_assign(&mut self, other: &WireU32)
fn sub_assign(&mut self, other: &WireU32)
Performs the
-=
operation. Read moreSource§impl SubAssign<&u32> for WireU32
impl SubAssign<&u32> for WireU32
Source§fn sub_assign(&mut self, other: &u32)
fn sub_assign(&mut self, other: &u32)
Performs the
-=
operation. Read moreSource§impl SubAssign<u32> for WireU32
impl SubAssign<u32> for WireU32
Source§fn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
Performs the
-=
operation. Read moreSource§impl SubAssign for WireU32
impl SubAssign for WireU32
Source§fn sub_assign(&mut self, other: WireU32)
fn sub_assign(&mut self, other: WireU32)
Performs the
-=
operation. Read moreSource§impl TakeFrom<WireU32> for WireU32
impl TakeFrom<WireU32> for WireU32
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<WireU32> for u32
impl TakeFrom<WireU32> for u32
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 WireU32where
u32: TryFromBytes,
impl TryFromBytes for WireU32where
u32: 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 WireU32
impl ZeroPadding for WireU32
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 WireU32
impl Eq for WireU32
Auto Trait Implementations§
impl Freeze for WireU32
impl RefUnwindSafe for WireU32
impl Send for WireU32
impl Sync for WireU32
impl Unpin for WireU32
impl UnwindSafe for WireU32
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