Struct everscale_types::num::Uint9
source · #[repr(transparent)]pub struct Uint9(_);Expand description
Fixed-length 9-bit integer.
Implementations§
source§impl Uint9
impl Uint9
sourcepub const fn into_inner(self) -> u16
pub const fn into_inner(self) -> u16
Converts integer into an underlying primitive integer.
sourcepub const fn is_valid(&self) -> bool
pub const fn is_valid(&self) -> bool
Returns true if an underlying primitive integer fits into the repr.
sourcepub const fn checked_add(self, rhs: Self) -> Option<Self>
pub const fn checked_add(self, rhs: Self) -> Option<Self>
Checked integer addition. Computes self + rhs, returning None if overflow occurred.
sourcepub const fn checked_sub(self, rhs: Self) -> Option<Self>
pub const fn checked_sub(self, rhs: Self) -> Option<Self>
Checked integer subtraction. Computes self - rhs, returning None if overflow occurred.
sourcepub const fn checked_mul(self, rhs: Self) -> Option<Self>
pub const fn checked_mul(self, rhs: Self) -> Option<Self>
Checked integer multiplication. Computes self * rhs, returning None if overflow occurred.
sourcepub const fn checked_div(self, rhs: Self) -> Option<Self>
pub const fn checked_div(self, rhs: Self) -> Option<Self>
Checked integer division. Computes self / rhs, returning None if rhs == 0
or overflow occurred.
Trait Implementations§
source§impl AddAssign<Uint9> for Uint9
impl AddAssign<Uint9> for Uint9
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl AddAssign<u16> for Uint9
impl AddAssign<u16> for Uint9
source§fn add_assign(&mut self, rhs: u16)
fn add_assign(&mut self, rhs: u16)
Performs the
+= operation. Read moresource§impl DivAssign<Uint9> for Uint9
impl DivAssign<Uint9> for Uint9
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moresource§impl DivAssign<u16> for Uint9
impl DivAssign<u16> for Uint9
source§fn div_assign(&mut self, rhs: u16)
fn div_assign(&mut self, rhs: u16)
Performs the
/= operation. Read moresource§impl MulAssign<Uint9> for Uint9
impl MulAssign<Uint9> for Uint9
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moresource§impl MulAssign<u16> for Uint9
impl MulAssign<u16> for Uint9
source§fn mul_assign(&mut self, rhs: u16)
fn mul_assign(&mut self, rhs: u16)
Performs the
*= operation. Read moresource§impl Ord for Uint9
impl Ord for Uint9
source§impl PartialEq<Uint9> for Uint9
impl PartialEq<Uint9> for Uint9
source§impl PartialEq<Uint9> for u16
impl PartialEq<Uint9> for u16
source§impl PartialOrd<Uint9> for Uint9
impl PartialOrd<Uint9> for Uint9
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl ShlAssign<u8> for Uint9
impl ShlAssign<u8> for Uint9
source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
Performs the
<<= operation. Read moresource§impl ShrAssign<u8> for Uint9
impl ShrAssign<u8> for Uint9
source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
Performs the
>>= operation. Read moresource§impl Store for Uint9
impl Store for Uint9
source§fn store_into(
&self,
builder: &mut CellBuilder,
_: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, _: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
source§impl SubAssign<Uint9> for Uint9
impl SubAssign<Uint9> for Uint9
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moresource§impl SubAssign<u16> for Uint9
impl SubAssign<u16> for Uint9
source§fn sub_assign(&mut self, rhs: u16)
fn sub_assign(&mut self, rhs: u16)
Performs the
-= operation. Read moreimpl Copy for Uint9
impl Eq for Uint9
impl StructuralEq for Uint9
impl StructuralPartialEq for Uint9
Auto Trait Implementations§
impl RefUnwindSafe for Uint9
impl Send for Uint9
impl Sync for Uint9
impl Unpin for Uint9
impl UnwindSafe for Uint9
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