Struct candid::types::number::Nat

source ·
pub struct Nat(pub BigUint);

Tuple Fields§

§0: BigUint

Implementations§

source§

impl Nat

source

pub fn parse(v: &[u8]) -> Result<Self>

source§

impl Nat

source

pub fn encode<W>(&self, w: &mut W) -> Result<()>
where W: ?Sized + Write,

source

pub fn decode<R>(r: &mut R) -> Result<Self>
where R: Read,

Trait Implementations§

source§

impl Add<Nat> for u128

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: Nat) -> Nat

Performs the + operation. Read more
source§

impl Add<Nat> for u16

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: Nat) -> Nat

Performs the + operation. Read more
source§

impl Add<Nat> for u32

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: Nat) -> Nat

Performs the + operation. Read more
source§

impl Add<Nat> for u64

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: Nat) -> Nat

Performs the + operation. Read more
source§

impl Add<Nat> for u8

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: Nat) -> Nat

Performs the + operation. Read more
source§

impl Add<Nat> for usize

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: Nat) -> Nat

Performs the + operation. Read more
source§

impl Add<u128> for Nat

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: u128) -> Nat

Performs the + operation. Read more
source§

impl Add<u16> for Nat

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: u16) -> Nat

Performs the + operation. Read more
source§

impl Add<u32> for Nat

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: u32) -> Nat

Performs the + operation. Read more
source§

impl Add<u64> for Nat

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: u64) -> Nat

Performs the + operation. Read more
source§

impl Add<u8> for Nat

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: u8) -> Nat

Performs the + operation. Read more
source§

impl Add<usize> for Nat

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: usize) -> Nat

Performs the + operation. Read more
source§

impl Add for Nat

§

type Output = Nat

The resulting type after applying the + operator.
source§

fn add(self, other: Nat) -> Nat

Performs the + operation. Read more
source§

impl AddAssign<u128> for Nat

source§

fn add_assign(&mut self, other: u128)

Performs the += operation. Read more
source§

impl AddAssign<u16> for Nat

source§

fn add_assign(&mut self, other: u16)

Performs the += operation. Read more
source§

impl AddAssign<u32> for Nat

source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
source§

impl AddAssign<u64> for Nat

source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
source§

impl AddAssign<u8> for Nat

source§

fn add_assign(&mut self, other: u8)

Performs the += operation. Read more
source§

impl AddAssign<usize> for Nat

source§

fn add_assign(&mut self, other: usize)

Performs the += operation. Read more
source§

impl AddAssign for Nat

source§

fn add_assign(&mut self, other: Nat)

Performs the += operation. Read more
source§

impl CandidType for Nat

source§

fn _ty() -> Type

source§

fn idl_serialize<S>(&self, serializer: S) -> Result<(), S::Error>
where S: Serializer,

source§

fn ty() -> Type

source§

fn id() -> TypeId

source§

impl Clone for Nat

source§

fn clone(&self) -> Nat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Nat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Nat

source§

fn default() -> Nat

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Nat

source§

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 Display for Nat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div<Nat> for u128

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: Nat) -> Nat

Performs the / operation. Read more
source§

impl Div<Nat> for u16

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: Nat) -> Nat

Performs the / operation. Read more
source§

impl Div<Nat> for u32

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: Nat) -> Nat

Performs the / operation. Read more
source§

impl Div<Nat> for u64

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: Nat) -> Nat

Performs the / operation. Read more
source§

impl Div<Nat> for u8

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: Nat) -> Nat

Performs the / operation. Read more
source§

impl Div<Nat> for usize

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: Nat) -> Nat

Performs the / operation. Read more
source§

impl Div<u128> for Nat

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: u128) -> Nat

Performs the / operation. Read more
source§

impl Div<u16> for Nat

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: u16) -> Nat

Performs the / operation. Read more
source§

impl Div<u32> for Nat

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> Nat

Performs the / operation. Read more
source§

impl Div<u64> for Nat

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: u64) -> Nat

Performs the / operation. Read more
source§

impl Div<u8> for Nat

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: u8) -> Nat

Performs the / operation. Read more
source§

impl Div<usize> for Nat

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: usize) -> Nat

Performs the / operation. Read more
source§

impl Div for Nat

§

type Output = Nat

The resulting type after applying the / operator.
source§

fn div(self, other: Nat) -> Nat

Performs the / operation. Read more
source§

impl DivAssign<u128> for Nat

source§

fn div_assign(&mut self, other: u128)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for Nat

source§

fn div_assign(&mut self, other: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for Nat

source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for Nat

source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for Nat

source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
source§

impl DivAssign<usize> for Nat

source§

fn div_assign(&mut self, other: usize)

Performs the /= operation. Read more
source§

impl DivAssign for Nat

source§

fn div_assign(&mut self, other: Nat)

Performs the /= operation. Read more
source§

impl From<BigUint> for Nat

source§

fn from(i: BigUint) -> Self

Converts to this type from the input type.
source§

impl From<Nat> for BigInt

source§

fn from(i: Nat) -> Self

Converts to this type from the input type.
source§

impl From<Nat> for BigUint

source§

fn from(i: Nat) -> Self

Converts to this type from the input type.
source§

impl From<Nat> for Int

source§

fn from(n: Nat) -> Self

Converts to this type from the input type.
source§

impl From<u128> for Nat

source§

fn from(v: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Nat

source§

fn from(v: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Nat

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Nat

source§

fn from(v: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Nat

source§

fn from(v: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Nat

source§

fn from(v: usize) -> Self

Converts to this type from the input type.
source§

impl FromStr for Nat

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(str: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Nat

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Mul<Nat> for u128

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: Nat) -> Nat

Performs the * operation. Read more
source§

impl Mul<Nat> for u16

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: Nat) -> Nat

Performs the * operation. Read more
source§

impl Mul<Nat> for u32

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: Nat) -> Nat

Performs the * operation. Read more
source§

impl Mul<Nat> for u64

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: Nat) -> Nat

Performs the * operation. Read more
source§

impl Mul<Nat> for u8

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: Nat) -> Nat

Performs the * operation. Read more
source§

impl Mul<Nat> for usize

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: Nat) -> Nat

Performs the * operation. Read more
source§

impl Mul<u128> for Nat

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: u128) -> Nat

Performs the * operation. Read more
source§

impl Mul<u16> for Nat

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: u16) -> Nat

Performs the * operation. Read more
source§

impl Mul<u32> for Nat

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> Nat

Performs the * operation. Read more
source§

impl Mul<u64> for Nat

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: u64) -> Nat

Performs the * operation. Read more
source§

impl Mul<u8> for Nat

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: u8) -> Nat

Performs the * operation. Read more
source§

impl Mul<usize> for Nat

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: usize) -> Nat

Performs the * operation. Read more
source§

impl Mul for Nat

§

type Output = Nat

The resulting type after applying the * operator.
source§

fn mul(self, other: Nat) -> Nat

Performs the * operation. Read more
source§

impl MulAssign<u128> for Nat

source§

fn mul_assign(&mut self, other: u128)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for Nat

source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for Nat

source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for Nat

source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for Nat

source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
source§

impl MulAssign<usize> for Nat

source§

fn mul_assign(&mut self, other: usize)

Performs the *= operation. Read more
source§

impl MulAssign for Nat

source§

fn mul_assign(&mut self, other: Nat)

Performs the *= operation. Read more
source§

impl Ord for Nat

source§

fn cmp(&self, other: &Nat) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Nat> for u128

source§

fn eq(&self, v: &Nat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Nat> for u16

source§

fn eq(&self, v: &Nat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Nat> for u32

source§

fn eq(&self, v: &Nat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Nat> for u64

source§

fn eq(&self, v: &Nat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Nat> for u8

source§

fn eq(&self, v: &Nat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Nat> for usize

source§

fn eq(&self, v: &Nat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u128> for Nat

source§

fn eq(&self, v: &u128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u16> for Nat

source§

fn eq(&self, v: &u16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u32> for Nat

source§

fn eq(&self, v: &u32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u64> for Nat

source§

fn eq(&self, v: &u64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u8> for Nat

source§

fn eq(&self, v: &u8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<usize> for Nat

source§

fn eq(&self, v: &usize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Nat

source§

fn eq(&self, other: &Nat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Nat> for u128

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Nat> for u16

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Nat> for u32

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Nat> for u64

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Nat> for u8

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Nat> for usize

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u128> for Nat

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u16> for Nat

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u32> for Nat

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u64> for Nat

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u8> for Nat

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<usize> for Nat

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd for Nat

source§

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 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Rem<Nat> for u128

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: Nat) -> Nat

Performs the % operation. Read more
source§

impl Rem<Nat> for u16

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: Nat) -> Nat

Performs the % operation. Read more
source§

impl Rem<Nat> for u32

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: Nat) -> Nat

Performs the % operation. Read more
source§

impl Rem<Nat> for u64

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: Nat) -> Nat

Performs the % operation. Read more
source§

impl Rem<Nat> for u8

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: Nat) -> Nat

Performs the % operation. Read more
source§

impl Rem<Nat> for usize

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: Nat) -> Nat

Performs the % operation. Read more
source§

impl Rem<u128> for Nat

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: u128) -> Nat

Performs the % operation. Read more
source§

impl Rem<u16> for Nat

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: u16) -> Nat

Performs the % operation. Read more
source§

impl Rem<u32> for Nat

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: u32) -> Nat

Performs the % operation. Read more
source§

impl Rem<u64> for Nat

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: u64) -> Nat

Performs the % operation. Read more
source§

impl Rem<u8> for Nat

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: u8) -> Nat

Performs the % operation. Read more
source§

impl Rem<usize> for Nat

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: usize) -> Nat

Performs the % operation. Read more
source§

impl Rem for Nat

§

type Output = Nat

The resulting type after applying the % operator.
source§

fn rem(self, other: Nat) -> Nat

Performs the % operation. Read more
source§

impl RemAssign<u128> for Nat

source§

fn rem_assign(&mut self, other: u128)

Performs the %= operation. Read more
source§

impl RemAssign<u16> for Nat

source§

fn rem_assign(&mut self, other: u16)

Performs the %= operation. Read more
source§

impl RemAssign<u32> for Nat

source§

fn rem_assign(&mut self, other: u32)

Performs the %= operation. Read more
source§

impl RemAssign<u64> for Nat

source§

fn rem_assign(&mut self, other: u64)

Performs the %= operation. Read more
source§

impl RemAssign<u8> for Nat

source§

fn rem_assign(&mut self, other: u8)

Performs the %= operation. Read more
source§

impl RemAssign<usize> for Nat

source§

fn rem_assign(&mut self, other: usize)

Performs the %= operation. Read more
source§

impl RemAssign for Nat

source§

fn rem_assign(&mut self, other: Nat)

Performs the %= operation. Read more
source§

impl Serialize for Nat

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Sub<Nat> for u128

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: Nat) -> Nat

Performs the - operation. Read more
source§

impl Sub<Nat> for u16

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: Nat) -> Nat

Performs the - operation. Read more
source§

impl Sub<Nat> for u32

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: Nat) -> Nat

Performs the - operation. Read more
source§

impl Sub<Nat> for u64

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: Nat) -> Nat

Performs the - operation. Read more
source§

impl Sub<Nat> for u8

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: Nat) -> Nat

Performs the - operation. Read more
source§

impl Sub<Nat> for usize

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: Nat) -> Nat

Performs the - operation. Read more
source§

impl Sub<u128> for Nat

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: u128) -> Nat

Performs the - operation. Read more
source§

impl Sub<u16> for Nat

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: u16) -> Nat

Performs the - operation. Read more
source§

impl Sub<u32> for Nat

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: u32) -> Nat

Performs the - operation. Read more
source§

impl Sub<u64> for Nat

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: u64) -> Nat

Performs the - operation. Read more
source§

impl Sub<u8> for Nat

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: u8) -> Nat

Performs the - operation. Read more
source§

impl Sub<usize> for Nat

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: usize) -> Nat

Performs the - operation. Read more
source§

impl Sub for Nat

§

type Output = Nat

The resulting type after applying the - operator.
source§

fn sub(self, other: Nat) -> Nat

Performs the - operation. Read more
source§

impl SubAssign<u128> for Nat

source§

fn sub_assign(&mut self, other: u128)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for Nat

source§

fn sub_assign(&mut self, other: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for Nat

source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u64> for Nat

source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for Nat

source§

fn sub_assign(&mut self, other: u8)

Performs the -= operation. Read more
source§

impl SubAssign<usize> for Nat

source§

fn sub_assign(&mut self, other: usize)

Performs the -= operation. Read more
source§

impl SubAssign for Nat

source§

fn sub_assign(&mut self, other: Nat)

Performs the -= operation. Read more
source§

impl Eq for Nat

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

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>,