Struct candid::types::number::Nat [−][src]
Implementations
impl Nat
[src]
impl Nat
[src]
pub fn encode<W: ?Sized>(&self, w: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
pub fn decode<R>(r: &mut R) -> Result<Self> where
R: Read,
[src]
R: Read,
Trait Implementations
impl Add<Nat> for Nat
[src]
type Output = Nat
The resulting type after applying the +
operator.
fn add(self, other: Nat) -> Nat
[src]
impl Add<i32> for Nat
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: i32) -> Self
[src]
impl Add<u128> for Nat
[src]
type Output = Nat
The resulting type after applying the +
operator.
fn add(self, other: u128) -> Nat
[src]
impl Add<u16> for Nat
[src]
type Output = Nat
The resulting type after applying the +
operator.
fn add(self, other: u16) -> Nat
[src]
impl Add<u32> for Nat
[src]
type Output = Nat
The resulting type after applying the +
operator.
fn add(self, other: u32) -> Nat
[src]
impl Add<u64> for Nat
[src]
type Output = Nat
The resulting type after applying the +
operator.
fn add(self, other: u64) -> Nat
[src]
impl Add<u8> for Nat
[src]
type Output = Nat
The resulting type after applying the +
operator.
fn add(self, other: u8) -> Nat
[src]
impl Add<usize> for Nat
[src]
type Output = Nat
The resulting type after applying the +
operator.
fn add(self, other: usize) -> Nat
[src]
impl AddAssign<Nat> for Nat
[src]
fn add_assign(&mut self, other: Nat)
[src]
impl AddAssign<i32> for Nat
[src]
fn add_assign(&mut self, other: i32)
[src]
impl AddAssign<u128> for Nat
[src]
fn add_assign(&mut self, other: u128)
[src]
impl AddAssign<u16> for Nat
[src]
fn add_assign(&mut self, other: u16)
[src]
impl AddAssign<u32> for Nat
[src]
fn add_assign(&mut self, other: u32)
[src]
impl AddAssign<u64> for Nat
[src]
fn add_assign(&mut self, other: u64)
[src]
impl AddAssign<u8> for Nat
[src]
fn add_assign(&mut self, other: u8)
[src]
impl AddAssign<usize> for Nat
[src]
fn add_assign(&mut self, other: usize)
[src]
impl CandidType for Nat
[src]
fn id() -> TypeId
[src]
fn _ty() -> Type
[src]
fn idl_serialize<S>(&self, serializer: S) -> Result<(), S::Error> where
S: Serializer,
[src]
S: Serializer,
fn ty() -> Type
[src]
impl Clone for Nat
[src]
impl Debug for Nat
[src]
impl Default for Nat
[src]
impl<'de> Deserialize<'de> for Nat
[src]
fn deserialize<D>(deserializer: D) -> Result<Nat, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for Nat
[src]
impl Div<Nat> for Nat
[src]
type Output = Nat
The resulting type after applying the /
operator.
fn div(self, other: Nat) -> Nat
[src]
impl Div<i32> for Nat
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: i32) -> Self
[src]
impl Div<u128> for Nat
[src]
type Output = Nat
The resulting type after applying the /
operator.
fn div(self, other: u128) -> Nat
[src]
impl Div<u16> for Nat
[src]
type Output = Nat
The resulting type after applying the /
operator.
fn div(self, other: u16) -> Nat
[src]
impl Div<u32> for Nat
[src]
type Output = Nat
The resulting type after applying the /
operator.
fn div(self, other: u32) -> Nat
[src]
impl Div<u64> for Nat
[src]
type Output = Nat
The resulting type after applying the /
operator.
fn div(self, other: u64) -> Nat
[src]
impl Div<u8> for Nat
[src]
type Output = Nat
The resulting type after applying the /
operator.
fn div(self, other: u8) -> Nat
[src]
impl Div<usize> for Nat
[src]
type Output = Nat
The resulting type after applying the /
operator.
fn div(self, other: usize) -> Nat
[src]
impl DivAssign<Nat> for Nat
[src]
fn div_assign(&mut self, other: Nat)
[src]
impl DivAssign<i32> for Nat
[src]
fn div_assign(&mut self, other: i32)
[src]
impl DivAssign<u128> for Nat
[src]
fn div_assign(&mut self, other: u128)
[src]
impl DivAssign<u16> for Nat
[src]
fn div_assign(&mut self, other: u16)
[src]
impl DivAssign<u32> for Nat
[src]
fn div_assign(&mut self, other: u32)
[src]
impl DivAssign<u64> for Nat
[src]
fn div_assign(&mut self, other: u64)
[src]
impl DivAssign<u8> for Nat
[src]
fn div_assign(&mut self, other: u8)
[src]
impl DivAssign<usize> for Nat
[src]
fn div_assign(&mut self, other: usize)
[src]
impl Eq for Nat
[src]
impl From<BigUint> for Nat
[src]
impl From<Nat> for Int
[src]
impl From<i32> for Nat
[src]
impl From<u128> for Nat
[src]
impl From<u16> for Nat
[src]
impl From<u32> for Nat
[src]
impl From<u64> for Nat
[src]
impl From<u8> for Nat
[src]
impl From<usize> for Nat
[src]
impl FromStr for Nat
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(str: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Nat
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<Nat> for Nat
[src]
type Output = Nat
The resulting type after applying the *
operator.
fn mul(self, other: Nat) -> Nat
[src]
impl Mul<i32> for Nat
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: i32) -> Self
[src]
impl Mul<u128> for Nat
[src]
type Output = Nat
The resulting type after applying the *
operator.
fn mul(self, other: u128) -> Nat
[src]
impl Mul<u16> for Nat
[src]
type Output = Nat
The resulting type after applying the *
operator.
fn mul(self, other: u16) -> Nat
[src]
impl Mul<u32> for Nat
[src]
type Output = Nat
The resulting type after applying the *
operator.
fn mul(self, other: u32) -> Nat
[src]
impl Mul<u64> for Nat
[src]
type Output = Nat
The resulting type after applying the *
operator.
fn mul(self, other: u64) -> Nat
[src]
impl Mul<u8> for Nat
[src]
type Output = Nat
The resulting type after applying the *
operator.
fn mul(self, other: u8) -> Nat
[src]
impl Mul<usize> for Nat
[src]
type Output = Nat
The resulting type after applying the *
operator.
fn mul(self, other: usize) -> Nat
[src]
impl MulAssign<Nat> for Nat
[src]
fn mul_assign(&mut self, other: Nat)
[src]
impl MulAssign<i32> for Nat
[src]
fn mul_assign(&mut self, other: i32)
[src]
impl MulAssign<u128> for Nat
[src]
fn mul_assign(&mut self, other: u128)
[src]
impl MulAssign<u16> for Nat
[src]
fn mul_assign(&mut self, other: u16)
[src]
impl MulAssign<u32> for Nat
[src]
fn mul_assign(&mut self, other: u32)
[src]
impl MulAssign<u64> for Nat
[src]
fn mul_assign(&mut self, other: u64)
[src]
impl MulAssign<u8> for Nat
[src]
fn mul_assign(&mut self, other: u8)
[src]
impl MulAssign<usize> for Nat
[src]
fn mul_assign(&mut self, other: usize)
[src]
impl Ord for Nat
[src]
fn cmp(&self, other: &Nat) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Nat> for Nat
[src]
impl PartialEq<i32> for Nat
[src]
#[must_use]fn eq(&self, v: &i32) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u128> for Nat
[src]
#[must_use]fn eq(&self, v: &u128) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u16> for Nat
[src]
#[must_use]fn eq(&self, v: &u16) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u32> for Nat
[src]
#[must_use]fn eq(&self, v: &u32) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u64> for Nat
[src]
#[must_use]fn eq(&self, v: &u64) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u8> for Nat
[src]
#[must_use]fn eq(&self, v: &u8) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<usize> for Nat
[src]
#[must_use]fn eq(&self, v: &usize) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Nat> for Nat
[src]
fn partial_cmp(&self, other: &Nat) -> Option<Ordering>
[src]
fn lt(&self, other: &Nat) -> bool
[src]
fn le(&self, other: &Nat) -> bool
[src]
fn gt(&self, other: &Nat) -> bool
[src]
fn ge(&self, other: &Nat) -> bool
[src]
impl PartialOrd<u128> for Nat
[src]
fn partial_cmp(&self, other: &u128) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<u16> for Nat
[src]
fn partial_cmp(&self, other: &u16) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<u32> for Nat
[src]
fn partial_cmp(&self, other: &u32) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<u64> for Nat
[src]
fn partial_cmp(&self, other: &u64) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<u8> for Nat
[src]
fn partial_cmp(&self, other: &u8) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<usize> for Nat
[src]
fn partial_cmp(&self, other: &usize) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<Nat> for Nat
[src]
type Output = Nat
The resulting type after applying the %
operator.
fn rem(self, other: Nat) -> Nat
[src]
impl Rem<i32> for Nat
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, other: i32) -> Self
[src]
impl Rem<u128> for Nat
[src]
type Output = Nat
The resulting type after applying the %
operator.
fn rem(self, other: u128) -> Nat
[src]
impl Rem<u16> for Nat
[src]
type Output = Nat
The resulting type after applying the %
operator.
fn rem(self, other: u16) -> Nat
[src]
impl Rem<u32> for Nat
[src]
type Output = Nat
The resulting type after applying the %
operator.
fn rem(self, other: u32) -> Nat
[src]
impl Rem<u64> for Nat
[src]
type Output = Nat
The resulting type after applying the %
operator.
fn rem(self, other: u64) -> Nat
[src]
impl Rem<u8> for Nat
[src]
type Output = Nat
The resulting type after applying the %
operator.
fn rem(self, other: u8) -> Nat
[src]
impl Rem<usize> for Nat
[src]
type Output = Nat
The resulting type after applying the %
operator.
fn rem(self, other: usize) -> Nat
[src]
impl RemAssign<Nat> for Nat
[src]
fn rem_assign(&mut self, other: Nat)
[src]
impl RemAssign<i32> for Nat
[src]
fn rem_assign(&mut self, other: i32)
[src]
impl RemAssign<u128> for Nat
[src]
fn rem_assign(&mut self, other: u128)
[src]
impl RemAssign<u16> for Nat
[src]
fn rem_assign(&mut self, other: u16)
[src]
impl RemAssign<u32> for Nat
[src]
fn rem_assign(&mut self, other: u32)
[src]
impl RemAssign<u64> for Nat
[src]
fn rem_assign(&mut self, other: u64)
[src]
impl RemAssign<u8> for Nat
[src]
fn rem_assign(&mut self, other: u8)
[src]
impl RemAssign<usize> for Nat
[src]
fn rem_assign(&mut self, other: usize)
[src]
impl StructuralEq for Nat
[src]
impl StructuralPartialEq for Nat
[src]
impl Sub<Nat> for Nat
[src]
type Output = Nat
The resulting type after applying the -
operator.
fn sub(self, other: Nat) -> Nat
[src]
impl Sub<i32> for Nat
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: i32) -> Self
[src]
impl Sub<u128> for Nat
[src]
type Output = Nat
The resulting type after applying the -
operator.
fn sub(self, other: u128) -> Nat
[src]
impl Sub<u16> for Nat
[src]
type Output = Nat
The resulting type after applying the -
operator.
fn sub(self, other: u16) -> Nat
[src]
impl Sub<u32> for Nat
[src]
type Output = Nat
The resulting type after applying the -
operator.
fn sub(self, other: u32) -> Nat
[src]
impl Sub<u64> for Nat
[src]
type Output = Nat
The resulting type after applying the -
operator.
fn sub(self, other: u64) -> Nat
[src]
impl Sub<u8> for Nat
[src]
type Output = Nat
The resulting type after applying the -
operator.
fn sub(self, other: u8) -> Nat
[src]
impl Sub<usize> for Nat
[src]
type Output = Nat
The resulting type after applying the -
operator.
fn sub(self, other: usize) -> Nat
[src]
impl SubAssign<Nat> for Nat
[src]
fn sub_assign(&mut self, other: Nat)
[src]
impl SubAssign<i32> for Nat
[src]
fn sub_assign(&mut self, other: i32)
[src]
impl SubAssign<u128> for Nat
[src]
fn sub_assign(&mut self, other: u128)
[src]
impl SubAssign<u16> for Nat
[src]
fn sub_assign(&mut self, other: u16)
[src]
impl SubAssign<u32> for Nat
[src]
fn sub_assign(&mut self, other: u32)
[src]
impl SubAssign<u64> for Nat
[src]
fn sub_assign(&mut self, other: u64)
[src]
impl SubAssign<u8> for Nat
[src]
fn sub_assign(&mut self, other: u8)
[src]
impl SubAssign<usize> for Nat
[src]
fn sub_assign(&mut self, other: usize)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Nat
[src]
impl Send for Nat
[src]
impl Sync for Nat
[src]
impl Unpin for Nat
[src]
impl UnwindSafe for Nat
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,