pub struct WireU32(/* private fields */);Expand description
32-bit unsigned little-endian wire integer.
Implementations§
Source§impl WireU32
impl WireU32
Sourcepub fn checked_add_assign(&mut self, rhs: u32) -> Result<(), ProgramError>
pub fn checked_add_assign(&mut self, rhs: u32) -> Result<(), ProgramError>
Checked addition in native form, written back on success.
Sourcepub fn add_assign_checked(&mut self, rhs: u32) -> Result<(), ProgramError>
pub fn add_assign_checked(&mut self, rhs: u32) -> Result<(), ProgramError>
Alias for Self::checked_add_assign.
Sourcepub fn checked_sub_assign(&mut self, rhs: u32) -> Result<(), ProgramError>
pub fn checked_sub_assign(&mut self, rhs: u32) -> Result<(), ProgramError>
Checked subtraction in native form, written back on success.
Sourcepub fn sub_assign_checked(&mut self, rhs: u32) -> Result<(), ProgramError>
pub fn sub_assign_checked(&mut self, rhs: u32) -> Result<(), ProgramError>
Alias for Self::checked_sub_assign.
Sourcepub fn checked_mul_assign(&mut self, rhs: u32) -> Result<(), ProgramError>
pub fn checked_mul_assign(&mut self, rhs: u32) -> Result<(), ProgramError>
Checked multiplication in native form, written back on success.
Sourcepub fn mul_assign_checked(&mut self, rhs: u32) -> Result<(), ProgramError>
pub fn mul_assign_checked(&mut self, rhs: u32) -> Result<(), ProgramError>
Alias for Self::checked_mul_assign.
Sourcepub fn as_bytes_mut(&mut self) -> &mut [u8; 4]
pub fn as_bytes_mut(&mut self) -> &mut [u8; 4]
Raw byte access (mutable).
Trait Implementations§
Source§impl AddAssign<u32> for WireU32
impl AddAssign<u32> for WireU32
Source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the
+= operation. Read moreSource§impl AddAssign for WireU32
impl AddAssign for WireU32
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl FixedLayout for WireU32
impl FixedLayout for WireU32
Source§impl MulAssign<u32> for WireU32
impl MulAssign<u32> for WireU32
Source§fn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the
*= operation. Read moreSource§impl MulAssign for WireU32
impl MulAssign for WireU32
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl Ord for WireU32
impl Ord for WireU32
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for WireU32
impl PartialOrd for WireU32
Source§impl SubAssign<u32> for WireU32
impl SubAssign<u32> for WireU32
Source§fn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
Performs the
-= operation. Read moreSource§impl SubAssign for WireU32
impl SubAssign for WireU32
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for WireU32
impl Eq for WireU32
impl HopperZeroCopySealed for WireU32
impl Pod for WireU32
Available on crate feature
hopper-native-backend only.impl Pod for WireU32
impl StructuralPartialEq 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 UnsafeUnpin 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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.