pub struct WireU64(/* private fields */);Expand description
64-bit unsigned little-endian wire integer.
Implementations§
Source§impl WireU64
impl WireU64
Sourcepub fn checked_add_assign(&mut self, rhs: u64) -> Result<(), ProgramError>
pub fn checked_add_assign(&mut self, rhs: u64) -> Result<(), ProgramError>
Checked addition in native form, written back on success.
Sourcepub fn add_assign_checked(&mut self, rhs: u64) -> Result<(), ProgramError>
pub fn add_assign_checked(&mut self, rhs: u64) -> Result<(), ProgramError>
Alias for Self::checked_add_assign.
Sourcepub fn checked_sub_assign(&mut self, rhs: u64) -> Result<(), ProgramError>
pub fn checked_sub_assign(&mut self, rhs: u64) -> Result<(), ProgramError>
Checked subtraction in native form, written back on success.
Sourcepub fn sub_assign_checked(&mut self, rhs: u64) -> Result<(), ProgramError>
pub fn sub_assign_checked(&mut self, rhs: u64) -> Result<(), ProgramError>
Alias for Self::checked_sub_assign.
Sourcepub fn checked_mul_assign(&mut self, rhs: u64) -> Result<(), ProgramError>
pub fn checked_mul_assign(&mut self, rhs: u64) -> Result<(), ProgramError>
Checked multiplication in native form, written back on success.
Sourcepub fn mul_assign_checked(&mut self, rhs: u64) -> Result<(), ProgramError>
pub fn mul_assign_checked(&mut self, rhs: u64) -> Result<(), ProgramError>
Alias for Self::checked_mul_assign.
Sourcepub fn as_bytes_mut(&mut self) -> &mut [u8; 8]
pub fn as_bytes_mut(&mut self) -> &mut [u8; 8]
Raw byte access (mutable).
Trait Implementations§
Source§impl AddAssign<u64> for WireU64
impl AddAssign<u64> for WireU64
Source§fn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
Performs the
+= operation. Read moreSource§impl AddAssign for WireU64
impl AddAssign for WireU64
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl FixedLayout for WireU64
impl FixedLayout for WireU64
Source§impl MulAssign<u64> for WireU64
impl MulAssign<u64> for WireU64
Source§fn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the
*= operation. Read moreSource§impl MulAssign for WireU64
impl MulAssign for WireU64
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl Ord for WireU64
impl Ord for WireU64
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 WireU64
impl PartialOrd for WireU64
Source§impl SubAssign<u64> for WireU64
impl SubAssign<u64> for WireU64
Source§fn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
Performs the
-= operation. Read moreSource§impl SubAssign for WireU64
impl SubAssign for WireU64
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for WireU64
impl Eq for WireU64
impl HopperZeroCopySealed for WireU64
impl Pod for WireU64
Available on crate feature
hopper-native-backend only.impl Pod for WireU64
impl StructuralPartialEq for WireU64
Auto Trait Implementations§
impl Freeze for WireU64
impl RefUnwindSafe for WireU64
impl Send for WireU64
impl Sync for WireU64
impl Unpin for WireU64
impl UnsafeUnpin for WireU64
impl UnwindSafe for WireU64
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.