pub struct Nat(pub BigUint);Tuple Fields
0: BigUintImplementations
Trait Implementations
sourceimpl AddAssign<Nat> for Nat
impl AddAssign<Nat> for Nat
sourcefn add_assign(&mut self, other: Nat)
fn add_assign(&mut self, other: Nat)
Performs the += operation. Read more
sourceimpl AddAssign<i32> for Nat
impl AddAssign<i32> for Nat
sourcefn add_assign(&mut self, other: i32)
fn add_assign(&mut self, other: i32)
Performs the += operation. Read more
sourceimpl AddAssign<u128> for Nat
impl AddAssign<u128> for Nat
sourcefn add_assign(&mut self, other: u128)
fn add_assign(&mut self, other: u128)
Performs the += operation. Read more
sourceimpl AddAssign<u16> for Nat
impl AddAssign<u16> for Nat
sourcefn add_assign(&mut self, other: u16)
fn add_assign(&mut self, other: u16)
Performs the += operation. Read more
sourceimpl AddAssign<u32> for Nat
impl AddAssign<u32> for Nat
sourcefn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
Performs the += operation. Read more
sourceimpl AddAssign<u64> for Nat
impl AddAssign<u64> for Nat
sourcefn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
Performs the += operation. Read more
sourceimpl AddAssign<u8> for Nat
impl AddAssign<u8> for Nat
sourcefn add_assign(&mut self, other: u8)
fn add_assign(&mut self, other: u8)
Performs the += operation. Read more
sourceimpl AddAssign<usize> for Nat
impl AddAssign<usize> for Nat
sourcefn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the += operation. Read more
sourceimpl CandidType for Nat
impl CandidType for Nat
sourceimpl<'de> Deserialize<'de> for Nat
impl<'de> Deserialize<'de> for Nat
sourcefn deserialize<D>(
deserializer: D
) -> Result<Nat, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Nat, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl DivAssign<Nat> for Nat
impl DivAssign<Nat> for Nat
sourcefn div_assign(&mut self, other: Nat)
fn div_assign(&mut self, other: Nat)
Performs the /= operation. Read more
sourceimpl DivAssign<i32> for Nat
impl DivAssign<i32> for Nat
sourcefn div_assign(&mut self, other: i32)
fn div_assign(&mut self, other: i32)
Performs the /= operation. Read more
sourceimpl DivAssign<u128> for Nat
impl DivAssign<u128> for Nat
sourcefn div_assign(&mut self, other: u128)
fn div_assign(&mut self, other: u128)
Performs the /= operation. Read more
sourceimpl DivAssign<u16> for Nat
impl DivAssign<u16> for Nat
sourcefn div_assign(&mut self, other: u16)
fn div_assign(&mut self, other: u16)
Performs the /= operation. Read more
sourceimpl DivAssign<u32> for Nat
impl DivAssign<u32> for Nat
sourcefn div_assign(&mut self, other: u32)
fn div_assign(&mut self, other: u32)
Performs the /= operation. Read more
sourceimpl DivAssign<u64> for Nat
impl DivAssign<u64> for Nat
sourcefn div_assign(&mut self, other: u64)
fn div_assign(&mut self, other: u64)
Performs the /= operation. Read more
sourceimpl DivAssign<u8> for Nat
impl DivAssign<u8> for Nat
sourcefn div_assign(&mut self, other: u8)
fn div_assign(&mut self, other: u8)
Performs the /= operation. Read more
sourceimpl DivAssign<usize> for Nat
impl DivAssign<usize> for Nat
sourcefn div_assign(&mut self, other: usize)
fn div_assign(&mut self, other: usize)
Performs the /= operation. Read more
sourceimpl MulAssign<Nat> for Nat
impl MulAssign<Nat> for Nat
sourcefn mul_assign(&mut self, other: Nat)
fn mul_assign(&mut self, other: Nat)
Performs the *= operation. Read more
sourceimpl MulAssign<i32> for Nat
impl MulAssign<i32> for Nat
sourcefn mul_assign(&mut self, other: i32)
fn mul_assign(&mut self, other: i32)
Performs the *= operation. Read more
sourceimpl MulAssign<u128> for Nat
impl MulAssign<u128> for Nat
sourcefn mul_assign(&mut self, other: u128)
fn mul_assign(&mut self, other: u128)
Performs the *= operation. Read more
sourceimpl MulAssign<u16> for Nat
impl MulAssign<u16> for Nat
sourcefn mul_assign(&mut self, other: u16)
fn mul_assign(&mut self, other: u16)
Performs the *= operation. Read more
sourceimpl MulAssign<u32> for Nat
impl MulAssign<u32> for Nat
sourcefn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
Performs the *= operation. Read more
sourceimpl MulAssign<u64> for Nat
impl MulAssign<u64> for Nat
sourcefn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
Performs the *= operation. Read more
sourceimpl MulAssign<u8> for Nat
impl MulAssign<u8> for Nat
sourcefn mul_assign(&mut self, other: u8)
fn mul_assign(&mut self, other: u8)
Performs the *= operation. Read more
sourceimpl MulAssign<usize> for Nat
impl MulAssign<usize> for Nat
sourcefn mul_assign(&mut self, other: usize)
fn mul_assign(&mut self, other: usize)
Performs the *= operation. Read more
sourceimpl Ord for Nat
impl Ord for Nat
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Nat> for Nat
impl PartialOrd<Nat> for Nat
sourcefn partial_cmp(&self, other: &Nat) -> Option<Ordering>
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<u128> for Nat
impl PartialOrd<u128> for Nat
sourcefn partial_cmp(&self, other: &u128) -> Option<Ordering>
fn partial_cmp(&self, other: &u128) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<u16> for Nat
impl PartialOrd<u16> for Nat
sourcefn partial_cmp(&self, other: &u16) -> Option<Ordering>
fn partial_cmp(&self, other: &u16) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<u32> for Nat
impl PartialOrd<u32> for Nat
sourcefn partial_cmp(&self, other: &u32) -> Option<Ordering>
fn partial_cmp(&self, other: &u32) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<u64> for Nat
impl PartialOrd<u64> for Nat
sourcefn partial_cmp(&self, other: &u64) -> Option<Ordering>
fn partial_cmp(&self, other: &u64) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<u8> for Nat
impl PartialOrd<u8> for Nat
sourcefn partial_cmp(&self, other: &u8) -> Option<Ordering>
fn partial_cmp(&self, other: &u8) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<usize> for Nat
impl PartialOrd<usize> for Nat
sourcefn partial_cmp(&self, other: &usize) -> Option<Ordering>
fn partial_cmp(&self, other: &usize) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl RemAssign<Nat> for Nat
impl RemAssign<Nat> for Nat
sourcefn rem_assign(&mut self, other: Nat)
fn rem_assign(&mut self, other: Nat)
Performs the %= operation. Read more
sourceimpl RemAssign<i32> for Nat
impl RemAssign<i32> for Nat
sourcefn rem_assign(&mut self, other: i32)
fn rem_assign(&mut self, other: i32)
Performs the %= operation. Read more
sourceimpl RemAssign<u128> for Nat
impl RemAssign<u128> for Nat
sourcefn rem_assign(&mut self, other: u128)
fn rem_assign(&mut self, other: u128)
Performs the %= operation. Read more
sourceimpl RemAssign<u16> for Nat
impl RemAssign<u16> for Nat
sourcefn rem_assign(&mut self, other: u16)
fn rem_assign(&mut self, other: u16)
Performs the %= operation. Read more
sourceimpl RemAssign<u32> for Nat
impl RemAssign<u32> for Nat
sourcefn rem_assign(&mut self, other: u32)
fn rem_assign(&mut self, other: u32)
Performs the %= operation. Read more
sourceimpl RemAssign<u64> for Nat
impl RemAssign<u64> for Nat
sourcefn rem_assign(&mut self, other: u64)
fn rem_assign(&mut self, other: u64)
Performs the %= operation. Read more
sourceimpl RemAssign<u8> for Nat
impl RemAssign<u8> for Nat
sourcefn rem_assign(&mut self, other: u8)
fn rem_assign(&mut self, other: u8)
Performs the %= operation. Read more
sourceimpl RemAssign<usize> for Nat
impl RemAssign<usize> for Nat
sourcefn rem_assign(&mut self, other: usize)
fn rem_assign(&mut self, other: usize)
Performs the %= operation. Read more
sourceimpl Serialize for Nat
impl Serialize for Nat
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl SubAssign<Nat> for Nat
impl SubAssign<Nat> for Nat
sourcefn sub_assign(&mut self, other: Nat)
fn sub_assign(&mut self, other: Nat)
Performs the -= operation. Read more
sourceimpl SubAssign<i32> for Nat
impl SubAssign<i32> for Nat
sourcefn sub_assign(&mut self, other: i32)
fn sub_assign(&mut self, other: i32)
Performs the -= operation. Read more
sourceimpl SubAssign<u128> for Nat
impl SubAssign<u128> for Nat
sourcefn sub_assign(&mut self, other: u128)
fn sub_assign(&mut self, other: u128)
Performs the -= operation. Read more
sourceimpl SubAssign<u16> for Nat
impl SubAssign<u16> for Nat
sourcefn sub_assign(&mut self, other: u16)
fn sub_assign(&mut self, other: u16)
Performs the -= operation. Read more
sourceimpl SubAssign<u32> for Nat
impl SubAssign<u32> for Nat
sourcefn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
Performs the -= operation. Read more
sourceimpl SubAssign<u64> for Nat
impl SubAssign<u64> for Nat
sourcefn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
Performs the -= operation. Read more
sourceimpl SubAssign<u8> for Nat
impl SubAssign<u8> for Nat
sourcefn sub_assign(&mut self, other: u8)
fn sub_assign(&mut self, other: u8)
Performs the -= operation. Read more
sourceimpl SubAssign<usize> for Nat
impl SubAssign<usize> for Nat
sourcefn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the -= operation. Read more
impl Eq for Nat
impl StructuralEq for Nat
impl StructuralPartialEq for Nat
Auto Trait Implementations
impl RefUnwindSafe for Nat
impl Send for Nat
impl Sync for Nat
impl Unpin for Nat
impl UnwindSafe for Nat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more