pub struct Nat(pub BigUint);
Tuple Fields§
§0: BigUint
Implementations§
Trait Implementations§
source§impl AddAssign<u128> for Nat
impl AddAssign<u128> for Nat
source§fn add_assign(&mut self, other: u128)
fn add_assign(&mut self, other: u128)
Performs the
+=
operation. Read moresource§impl AddAssign<u16> for Nat
impl AddAssign<u16> for Nat
source§fn add_assign(&mut self, other: u16)
fn add_assign(&mut self, other: u16)
Performs the
+=
operation. Read moresource§impl AddAssign<u32> for Nat
impl AddAssign<u32> for Nat
source§fn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
Performs the
+=
operation. Read moresource§impl AddAssign<u64> for Nat
impl AddAssign<u64> for Nat
source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
Performs the
+=
operation. Read moresource§impl AddAssign<u8> for Nat
impl AddAssign<u8> for Nat
source§fn add_assign(&mut self, other: u8)
fn add_assign(&mut self, other: u8)
Performs the
+=
operation. Read moresource§impl AddAssign<usize> for Nat
impl AddAssign<usize> for Nat
source§fn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
Performs the
+=
operation. Read moresource§impl AddAssign for Nat
impl AddAssign for Nat
source§fn add_assign(&mut self, other: Nat)
fn add_assign(&mut self, other: Nat)
Performs the
+=
operation. Read moresource§impl CandidType for Nat
impl CandidType for Nat
source§impl<'de> Deserialize<'de> for Nat
impl<'de> Deserialize<'de> for Nat
source§fn 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
source§impl DivAssign<u128> for Nat
impl DivAssign<u128> for Nat
source§fn div_assign(&mut self, other: u128)
fn div_assign(&mut self, other: u128)
Performs the
/=
operation. Read moresource§impl DivAssign<u16> for Nat
impl DivAssign<u16> for Nat
source§fn div_assign(&mut self, other: u16)
fn div_assign(&mut self, other: u16)
Performs the
/=
operation. Read moresource§impl DivAssign<u32> for Nat
impl DivAssign<u32> for Nat
source§fn div_assign(&mut self, other: u32)
fn div_assign(&mut self, other: u32)
Performs the
/=
operation. Read moresource§impl DivAssign<u64> for Nat
impl DivAssign<u64> for Nat
source§fn div_assign(&mut self, other: u64)
fn div_assign(&mut self, other: u64)
Performs the
/=
operation. Read moresource§impl DivAssign<u8> for Nat
impl DivAssign<u8> for Nat
source§fn div_assign(&mut self, other: u8)
fn div_assign(&mut self, other: u8)
Performs the
/=
operation. Read moresource§impl DivAssign<usize> for Nat
impl DivAssign<usize> for Nat
source§fn div_assign(&mut self, other: usize)
fn div_assign(&mut self, other: usize)
Performs the
/=
operation. Read moresource§impl DivAssign for Nat
impl DivAssign for Nat
source§fn div_assign(&mut self, other: Nat)
fn div_assign(&mut self, other: Nat)
Performs the
/=
operation. Read moresource§impl MulAssign<u128> for Nat
impl MulAssign<u128> for Nat
source§fn mul_assign(&mut self, other: u128)
fn mul_assign(&mut self, other: u128)
Performs the
*=
operation. Read moresource§impl MulAssign<u16> for Nat
impl MulAssign<u16> for Nat
source§fn mul_assign(&mut self, other: u16)
fn mul_assign(&mut self, other: u16)
Performs the
*=
operation. Read moresource§impl MulAssign<u32> for Nat
impl MulAssign<u32> for Nat
source§fn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
Performs the
*=
operation. Read moresource§impl MulAssign<u64> for Nat
impl MulAssign<u64> for Nat
source§fn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
Performs the
*=
operation. Read moresource§impl MulAssign<u8> for Nat
impl MulAssign<u8> for Nat
source§fn mul_assign(&mut self, other: u8)
fn mul_assign(&mut self, other: u8)
Performs the
*=
operation. Read moresource§impl MulAssign<usize> for Nat
impl MulAssign<usize> for Nat
source§fn mul_assign(&mut self, other: usize)
fn mul_assign(&mut self, other: usize)
Performs the
*=
operation. Read moresource§impl MulAssign for Nat
impl MulAssign for Nat
source§fn mul_assign(&mut self, other: Nat)
fn mul_assign(&mut self, other: Nat)
Performs the
*=
operation. Read moresource§impl Ord for Nat
impl Ord for Nat
source§impl PartialOrd<Nat> for u128
impl PartialOrd<Nat> for u128
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 PartialOrd<Nat> for u16
impl PartialOrd<Nat> for u16
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 PartialOrd<Nat> for u32
impl PartialOrd<Nat> for u32
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 PartialOrd<Nat> for u64
impl PartialOrd<Nat> for u64
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 PartialOrd<Nat> for u8
impl PartialOrd<Nat> for u8
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 PartialOrd<Nat> for usize
impl PartialOrd<Nat> for usize
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 PartialOrd<u128> for Nat
impl PartialOrd<u128> for Nat
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 PartialOrd<u16> for Nat
impl PartialOrd<u16> for Nat
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 PartialOrd<u32> for Nat
impl PartialOrd<u32> for Nat
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 PartialOrd<u64> for Nat
impl PartialOrd<u64> for Nat
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 PartialOrd<u8> for Nat
impl PartialOrd<u8> for Nat
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 PartialOrd<usize> for Nat
impl PartialOrd<usize> for Nat
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 PartialOrd for Nat
impl PartialOrd for Nat
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 RemAssign<u128> for Nat
impl RemAssign<u128> for Nat
source§fn rem_assign(&mut self, other: u128)
fn rem_assign(&mut self, other: u128)
Performs the
%=
operation. Read moresource§impl RemAssign<u16> for Nat
impl RemAssign<u16> for Nat
source§fn rem_assign(&mut self, other: u16)
fn rem_assign(&mut self, other: u16)
Performs the
%=
operation. Read moresource§impl RemAssign<u32> for Nat
impl RemAssign<u32> for Nat
source§fn rem_assign(&mut self, other: u32)
fn rem_assign(&mut self, other: u32)
Performs the
%=
operation. Read moresource§impl RemAssign<u64> for Nat
impl RemAssign<u64> for Nat
source§fn rem_assign(&mut self, other: u64)
fn rem_assign(&mut self, other: u64)
Performs the
%=
operation. Read moresource§impl RemAssign<u8> for Nat
impl RemAssign<u8> for Nat
source§fn rem_assign(&mut self, other: u8)
fn rem_assign(&mut self, other: u8)
Performs the
%=
operation. Read moresource§impl RemAssign<usize> for Nat
impl RemAssign<usize> for Nat
source§fn rem_assign(&mut self, other: usize)
fn rem_assign(&mut self, other: usize)
Performs the
%=
operation. Read moresource§impl RemAssign for Nat
impl RemAssign for Nat
source§fn rem_assign(&mut self, other: Nat)
fn rem_assign(&mut self, other: Nat)
Performs the
%=
operation. Read moresource§impl SubAssign<u128> for Nat
impl SubAssign<u128> for Nat
source§fn sub_assign(&mut self, other: u128)
fn sub_assign(&mut self, other: u128)
Performs the
-=
operation. Read moresource§impl SubAssign<u16> for Nat
impl SubAssign<u16> for Nat
source§fn sub_assign(&mut self, other: u16)
fn sub_assign(&mut self, other: u16)
Performs the
-=
operation. Read moresource§impl SubAssign<u32> for Nat
impl SubAssign<u32> for Nat
source§fn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
Performs the
-=
operation. Read moresource§impl SubAssign<u64> for Nat
impl SubAssign<u64> for Nat
source§fn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
Performs the
-=
operation. Read moresource§impl SubAssign<u8> for Nat
impl SubAssign<u8> for Nat
source§fn sub_assign(&mut self, other: u8)
fn sub_assign(&mut self, other: u8)
Performs the
-=
operation. Read moresource§impl SubAssign<usize> for Nat
impl SubAssign<usize> for Nat
source§fn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
Performs the
-=
operation. Read moresource§impl SubAssign for Nat
impl SubAssign for Nat
source§fn sub_assign(&mut self, other: Nat)
fn sub_assign(&mut self, other: Nat)
Performs the
-=
operation. Read moreimpl Eq for Nat
impl StructuralPartialEq for Nat
Auto Trait Implementations§
impl Freeze for Nat
impl RefUnwindSafe for Nat
impl Send for Nat
impl Sync for Nat
impl Unpin for Nat
impl UnwindSafe for Nat
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