Struct candid::types::number::Nat [−][src]
pub struct Nat(pub BigUint);
Implementations
Trait Implementations
impl AddAssign<Nat> for Nat
[src]
impl AddAssign<Nat> for Nat
[src]fn add_assign(&mut self, other: Nat)
[src]
fn add_assign(&mut self, other: Nat)
[src]Performs the +=
operation. Read more
impl AddAssign<i32> for Nat
[src]
impl AddAssign<i32> for Nat
[src]fn add_assign(&mut self, other: i32)
[src]
fn add_assign(&mut self, other: i32)
[src]Performs the +=
operation. Read more
impl AddAssign<u128> for Nat
[src]
impl AddAssign<u128> for Nat
[src]fn add_assign(&mut self, other: u128)
[src]
fn add_assign(&mut self, other: u128)
[src]Performs the +=
operation. Read more
impl AddAssign<u16> for Nat
[src]
impl AddAssign<u16> for Nat
[src]fn add_assign(&mut self, other: u16)
[src]
fn add_assign(&mut self, other: u16)
[src]Performs the +=
operation. Read more
impl AddAssign<u32> for Nat
[src]
impl AddAssign<u32> for Nat
[src]fn add_assign(&mut self, other: u32)
[src]
fn add_assign(&mut self, other: u32)
[src]Performs the +=
operation. Read more
impl AddAssign<u64> for Nat
[src]
impl AddAssign<u64> for Nat
[src]fn add_assign(&mut self, other: u64)
[src]
fn add_assign(&mut self, other: u64)
[src]Performs the +=
operation. Read more
impl AddAssign<u8> for Nat
[src]
impl AddAssign<u8> for Nat
[src]fn add_assign(&mut self, other: u8)
[src]
fn add_assign(&mut self, other: u8)
[src]Performs the +=
operation. Read more
impl AddAssign<usize> for Nat
[src]
impl AddAssign<usize> for Nat
[src]fn add_assign(&mut self, other: usize)
[src]
fn add_assign(&mut self, other: usize)
[src]Performs the +=
operation. Read more
impl CandidType for Nat
[src]
impl CandidType for Nat
[src]impl<'de> Deserialize<'de> for Nat
[src]
impl<'de> Deserialize<'de> for Nat
[src]fn deserialize<D>(deserializer: D) -> Result<Nat, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Nat, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl DivAssign<Nat> for Nat
[src]
impl DivAssign<Nat> for Nat
[src]fn div_assign(&mut self, other: Nat)
[src]
fn div_assign(&mut self, other: Nat)
[src]Performs the /=
operation. Read more
impl DivAssign<i32> for Nat
[src]
impl DivAssign<i32> for Nat
[src]fn div_assign(&mut self, other: i32)
[src]
fn div_assign(&mut self, other: i32)
[src]Performs the /=
operation. Read more
impl DivAssign<u128> for Nat
[src]
impl DivAssign<u128> for Nat
[src]fn div_assign(&mut self, other: u128)
[src]
fn div_assign(&mut self, other: u128)
[src]Performs the /=
operation. Read more
impl DivAssign<u16> for Nat
[src]
impl DivAssign<u16> for Nat
[src]fn div_assign(&mut self, other: u16)
[src]
fn div_assign(&mut self, other: u16)
[src]Performs the /=
operation. Read more
impl DivAssign<u32> for Nat
[src]
impl DivAssign<u32> for Nat
[src]fn div_assign(&mut self, other: u32)
[src]
fn div_assign(&mut self, other: u32)
[src]Performs the /=
operation. Read more
impl DivAssign<u64> for Nat
[src]
impl DivAssign<u64> for Nat
[src]fn div_assign(&mut self, other: u64)
[src]
fn div_assign(&mut self, other: u64)
[src]Performs the /=
operation. Read more
impl DivAssign<u8> for Nat
[src]
impl DivAssign<u8> for Nat
[src]fn div_assign(&mut self, other: u8)
[src]
fn div_assign(&mut self, other: u8)
[src]Performs the /=
operation. Read more
impl DivAssign<usize> for Nat
[src]
impl DivAssign<usize> for Nat
[src]fn div_assign(&mut self, other: usize)
[src]
fn div_assign(&mut self, other: usize)
[src]Performs the /=
operation. Read more
impl MulAssign<Nat> for Nat
[src]
impl MulAssign<Nat> for Nat
[src]fn mul_assign(&mut self, other: Nat)
[src]
fn mul_assign(&mut self, other: Nat)
[src]Performs the *=
operation. Read more
impl MulAssign<i32> for Nat
[src]
impl MulAssign<i32> for Nat
[src]fn mul_assign(&mut self, other: i32)
[src]
fn mul_assign(&mut self, other: i32)
[src]Performs the *=
operation. Read more
impl MulAssign<u128> for Nat
[src]
impl MulAssign<u128> for Nat
[src]fn mul_assign(&mut self, other: u128)
[src]
fn mul_assign(&mut self, other: u128)
[src]Performs the *=
operation. Read more
impl MulAssign<u16> for Nat
[src]
impl MulAssign<u16> for Nat
[src]fn mul_assign(&mut self, other: u16)
[src]
fn mul_assign(&mut self, other: u16)
[src]Performs the *=
operation. Read more
impl MulAssign<u32> for Nat
[src]
impl MulAssign<u32> for Nat
[src]fn mul_assign(&mut self, other: u32)
[src]
fn mul_assign(&mut self, other: u32)
[src]Performs the *=
operation. Read more
impl MulAssign<u64> for Nat
[src]
impl MulAssign<u64> for Nat
[src]fn mul_assign(&mut self, other: u64)
[src]
fn mul_assign(&mut self, other: u64)
[src]Performs the *=
operation. Read more
impl MulAssign<u8> for Nat
[src]
impl MulAssign<u8> for Nat
[src]fn mul_assign(&mut self, other: u8)
[src]
fn mul_assign(&mut self, other: u8)
[src]Performs the *=
operation. Read more
impl MulAssign<usize> for Nat
[src]
impl MulAssign<usize> for Nat
[src]fn mul_assign(&mut self, other: usize)
[src]
fn mul_assign(&mut self, other: usize)
[src]Performs the *=
operation. Read more
impl Ord for Nat
[src]
impl Ord for Nat
[src]impl PartialOrd<Nat> for Nat
[src]
impl PartialOrd<Nat> for Nat
[src]fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<u128> for Nat
[src]
impl PartialOrd<u128> for Nat
[src]fn partial_cmp(&self, other: &u128) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &u128) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<u16> for Nat
[src]
impl PartialOrd<u16> for Nat
[src]fn partial_cmp(&self, other: &u16) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &u16) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<u32> for Nat
[src]
impl PartialOrd<u32> for Nat
[src]fn partial_cmp(&self, other: &u32) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &u32) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<u64> for Nat
[src]
impl PartialOrd<u64> for Nat
[src]fn partial_cmp(&self, other: &u64) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &u64) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<u8> for Nat
[src]
impl PartialOrd<u8> for Nat
[src]fn partial_cmp(&self, other: &u8) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &u8) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<usize> for Nat
[src]
impl PartialOrd<usize> for Nat
[src]fn partial_cmp(&self, other: &usize) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &usize) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl RemAssign<Nat> for Nat
[src]
impl RemAssign<Nat> for Nat
[src]fn rem_assign(&mut self, other: Nat)
[src]
fn rem_assign(&mut self, other: Nat)
[src]Performs the %=
operation. Read more
impl RemAssign<i32> for Nat
[src]
impl RemAssign<i32> for Nat
[src]fn rem_assign(&mut self, other: i32)
[src]
fn rem_assign(&mut self, other: i32)
[src]Performs the %=
operation. Read more
impl RemAssign<u128> for Nat
[src]
impl RemAssign<u128> for Nat
[src]fn rem_assign(&mut self, other: u128)
[src]
fn rem_assign(&mut self, other: u128)
[src]Performs the %=
operation. Read more
impl RemAssign<u16> for Nat
[src]
impl RemAssign<u16> for Nat
[src]fn rem_assign(&mut self, other: u16)
[src]
fn rem_assign(&mut self, other: u16)
[src]Performs the %=
operation. Read more
impl RemAssign<u32> for Nat
[src]
impl RemAssign<u32> for Nat
[src]fn rem_assign(&mut self, other: u32)
[src]
fn rem_assign(&mut self, other: u32)
[src]Performs the %=
operation. Read more
impl RemAssign<u64> for Nat
[src]
impl RemAssign<u64> for Nat
[src]fn rem_assign(&mut self, other: u64)
[src]
fn rem_assign(&mut self, other: u64)
[src]Performs the %=
operation. Read more
impl RemAssign<u8> for Nat
[src]
impl RemAssign<u8> for Nat
[src]fn rem_assign(&mut self, other: u8)
[src]
fn rem_assign(&mut self, other: u8)
[src]Performs the %=
operation. Read more
impl RemAssign<usize> for Nat
[src]
impl RemAssign<usize> for Nat
[src]fn rem_assign(&mut self, other: usize)
[src]
fn rem_assign(&mut self, other: usize)
[src]Performs the %=
operation. Read more
impl SubAssign<Nat> for Nat
[src]
impl SubAssign<Nat> for Nat
[src]fn sub_assign(&mut self, other: Nat)
[src]
fn sub_assign(&mut self, other: Nat)
[src]Performs the -=
operation. Read more
impl SubAssign<i32> for Nat
[src]
impl SubAssign<i32> for Nat
[src]fn sub_assign(&mut self, other: i32)
[src]
fn sub_assign(&mut self, other: i32)
[src]Performs the -=
operation. Read more
impl SubAssign<u128> for Nat
[src]
impl SubAssign<u128> for Nat
[src]fn sub_assign(&mut self, other: u128)
[src]
fn sub_assign(&mut self, other: u128)
[src]Performs the -=
operation. Read more
impl SubAssign<u16> for Nat
[src]
impl SubAssign<u16> for Nat
[src]fn sub_assign(&mut self, other: u16)
[src]
fn sub_assign(&mut self, other: u16)
[src]Performs the -=
operation. Read more
impl SubAssign<u32> for Nat
[src]
impl SubAssign<u32> for Nat
[src]fn sub_assign(&mut self, other: u32)
[src]
fn sub_assign(&mut self, other: u32)
[src]Performs the -=
operation. Read more
impl SubAssign<u64> for Nat
[src]
impl SubAssign<u64> for Nat
[src]fn sub_assign(&mut self, other: u64)
[src]
fn sub_assign(&mut self, other: u64)
[src]Performs the -=
operation. Read more
impl SubAssign<u8> for Nat
[src]
impl SubAssign<u8> for Nat
[src]fn sub_assign(&mut self, other: u8)
[src]
fn sub_assign(&mut self, other: u8)
[src]Performs the -=
operation. Read more
impl SubAssign<usize> for Nat
[src]
impl SubAssign<usize> for Nat
[src]fn sub_assign(&mut self, other: usize)
[src]
fn sub_assign(&mut self, other: usize)
[src]Performs the -=
operation. Read more
impl Eq for Nat
[src]
impl StructuralEq for Nat
[src]
impl StructuralPartialEq for Nat
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,