pub struct Nat(pub BigUint);
Tuple Fields
0: BigUint
Implementations
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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Nat, D::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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl Ord for Nat
impl Ord for Nat
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PartialOrd<Nat> for u128
impl PartialOrd<Nat> for u128
sourcefn partial_cmp(&self, other: &Nat) -> Option<Ordering>
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PartialOrd<Nat> for u16
impl PartialOrd<Nat> for u16
sourcefn partial_cmp(&self, other: &Nat) -> Option<Ordering>
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PartialOrd<Nat> for u32
impl PartialOrd<Nat> for u32
sourcefn partial_cmp(&self, other: &Nat) -> Option<Ordering>
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PartialOrd<Nat> for u64
impl PartialOrd<Nat> for u64
sourcefn partial_cmp(&self, other: &Nat) -> Option<Ordering>
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PartialOrd<Nat> for u8
impl PartialOrd<Nat> for u8
sourcefn partial_cmp(&self, other: &Nat) -> Option<Ordering>
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PartialOrd<Nat> for usize
impl PartialOrd<Nat> for usize
sourcefn partial_cmp(&self, other: &Nat) -> Option<Ordering>
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl 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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl 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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl 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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl 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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl 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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl 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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moresourceimpl 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 moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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