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