Struct candid::types::number::Nat[][src]

pub struct Nat(pub BigUint);

Implementations

impl Nat[src]

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

impl Nat[src]

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

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

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]

Performs the + operation. Read more

impl Add<i32> for Nat[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, other: i32) -> Self[src]

Performs the + operation. Read more

impl Add<u128> for Nat[src]

type Output = Nat

The resulting type after applying the + operator.

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

Performs the + operation. Read more

impl Add<u16> for Nat[src]

type Output = Nat

The resulting type after applying the + operator.

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

Performs the + operation. Read more

impl Add<u32> for Nat[src]

type Output = Nat

The resulting type after applying the + operator.

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

Performs the + operation. Read more

impl Add<u64> for Nat[src]

type Output = Nat

The resulting type after applying the + operator.

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

Performs the + operation. Read more

impl Add<u8> for Nat[src]

type Output = Nat

The resulting type after applying the + operator.

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

Performs the + operation. Read more

impl Add<usize> for Nat[src]

type Output = Nat

The resulting type after applying the + operator.

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

Performs the + operation. Read more

impl AddAssign<Nat> for Nat[src]

fn add_assign(&mut self, other: Nat)[src]

Performs the += operation. Read more

impl AddAssign<i32> for Nat[src]

fn add_assign(&mut self, other: i32)[src]

Performs the += operation. Read more

impl AddAssign<u128> for Nat[src]

fn add_assign(&mut self, other: u128)[src]

Performs the += operation. Read more

impl AddAssign<u16> for Nat[src]

fn add_assign(&mut self, other: u16)[src]

Performs the += operation. Read more

impl AddAssign<u32> for Nat[src]

fn add_assign(&mut self, other: u32)[src]

Performs the += operation. Read more

impl AddAssign<u64> for Nat[src]

fn add_assign(&mut self, other: u64)[src]

Performs the += operation. Read more

impl AddAssign<u8> for Nat[src]

fn add_assign(&mut self, other: u8)[src]

Performs the += operation. Read more

impl AddAssign<usize> for Nat[src]

fn add_assign(&mut self, other: usize)[src]

Performs the += operation. Read more

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]

fn ty() -> Type[src]

impl Clone for Nat[src]

fn clone(&self) -> Nat[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Nat[src]

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

Formats the value using the given formatter. Read more

impl Default for Nat[src]

fn default() -> Nat[src]

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

impl<'de> Deserialize<'de> for Nat[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 Display for Nat[src]

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

Formats the value using the given formatter. Read more

impl Div<Nat> for Nat[src]

type Output = Nat

The resulting type after applying the / operator.

fn div(self, other: Nat) -> Nat[src]

Performs the / operation. Read more

impl Div<i32> for Nat[src]

type Output = Self

The resulting type after applying the / operator.

fn div(self, other: i32) -> Self[src]

Performs the / operation. Read more

impl Div<u128> for Nat[src]

type Output = Nat

The resulting type after applying the / operator.

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

Performs the / operation. Read more

impl Div<u16> for Nat[src]

type Output = Nat

The resulting type after applying the / operator.

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

Performs the / operation. Read more

impl Div<u32> for Nat[src]

type Output = Nat

The resulting type after applying the / operator.

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

Performs the / operation. Read more

impl Div<u64> for Nat[src]

type Output = Nat

The resulting type after applying the / operator.

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

Performs the / operation. Read more

impl Div<u8> for Nat[src]

type Output = Nat

The resulting type after applying the / operator.

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

Performs the / operation. Read more

impl Div<usize> for Nat[src]

type Output = Nat

The resulting type after applying the / operator.

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

Performs the / operation. Read more

impl DivAssign<Nat> for Nat[src]

fn div_assign(&mut self, other: Nat)[src]

Performs the /= operation. Read more

impl DivAssign<i32> for Nat[src]

fn div_assign(&mut self, other: i32)[src]

Performs the /= operation. Read more

impl DivAssign<u128> for Nat[src]

fn div_assign(&mut self, other: u128)[src]

Performs the /= operation. Read more

impl DivAssign<u16> for Nat[src]

fn div_assign(&mut self, other: u16)[src]

Performs the /= operation. Read more

impl DivAssign<u32> for Nat[src]

fn div_assign(&mut self, other: u32)[src]

Performs the /= operation. Read more

impl DivAssign<u64> for Nat[src]

fn div_assign(&mut self, other: u64)[src]

Performs the /= operation. Read more

impl DivAssign<u8> for Nat[src]

fn div_assign(&mut self, other: u8)[src]

Performs the /= operation. Read more

impl DivAssign<usize> for Nat[src]

fn div_assign(&mut self, other: usize)[src]

Performs the /= operation. Read more

impl From<BigUint> for Nat[src]

fn from(i: BigUint) -> Self[src]

Performs the conversion.

impl From<Nat> for Int[src]

fn from(n: Nat) -> Self[src]

Performs the conversion.

impl From<i32> for Nat[src]

fn from(v: i32) -> Self[src]

Performs the conversion.

impl From<u128> for Nat[src]

fn from(v: u128) -> Self[src]

Performs the conversion.

impl From<u16> for Nat[src]

fn from(v: u16) -> Self[src]

Performs the conversion.

impl From<u32> for Nat[src]

fn from(v: u32) -> Self[src]

Performs the conversion.

impl From<u64> for Nat[src]

fn from(v: u64) -> Self[src]

Performs the conversion.

impl From<u8> for Nat[src]

fn from(v: u8) -> Self[src]

Performs the conversion.

impl From<usize> for Nat[src]

fn from(v: usize) -> Self[src]

Performs the conversion.

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]

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

impl Hash for Nat[src]

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

Feeds this value into the given Hasher. Read more

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

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

impl Mul<Nat> for Nat[src]

type Output = Nat

The resulting type after applying the * operator.

fn mul(self, other: Nat) -> Nat[src]

Performs the * operation. Read more

impl Mul<i32> for Nat[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, other: i32) -> Self[src]

Performs the * operation. Read more

impl Mul<u128> for Nat[src]

type Output = Nat

The resulting type after applying the * operator.

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

Performs the * operation. Read more

impl Mul<u16> for Nat[src]

type Output = Nat

The resulting type after applying the * operator.

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

Performs the * operation. Read more

impl Mul<u32> for Nat[src]

type Output = Nat

The resulting type after applying the * operator.

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

Performs the * operation. Read more

impl Mul<u64> for Nat[src]

type Output = Nat

The resulting type after applying the * operator.

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

Performs the * operation. Read more

impl Mul<u8> for Nat[src]

type Output = Nat

The resulting type after applying the * operator.

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

Performs the * operation. Read more

impl Mul<usize> for Nat[src]

type Output = Nat

The resulting type after applying the * operator.

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

Performs the * operation. Read more

impl MulAssign<Nat> for Nat[src]

fn mul_assign(&mut self, other: Nat)[src]

Performs the *= operation. Read more

impl MulAssign<i32> for Nat[src]

fn mul_assign(&mut self, other: i32)[src]

Performs the *= operation. Read more

impl MulAssign<u128> for Nat[src]

fn mul_assign(&mut self, other: u128)[src]

Performs the *= operation. Read more

impl MulAssign<u16> for Nat[src]

fn mul_assign(&mut self, other: u16)[src]

Performs the *= operation. Read more

impl MulAssign<u32> for Nat[src]

fn mul_assign(&mut self, other: u32)[src]

Performs the *= operation. Read more

impl MulAssign<u64> for Nat[src]

fn mul_assign(&mut self, other: u64)[src]

Performs the *= operation. Read more

impl MulAssign<u8> for Nat[src]

fn mul_assign(&mut self, other: u8)[src]

Performs the *= operation. Read more

impl MulAssign<usize> for Nat[src]

fn mul_assign(&mut self, other: usize)[src]

Performs the *= operation. Read more

impl Ord for Nat[src]

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

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl PartialEq<Nat> for Nat[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Nat) -> bool[src]

This method tests for !=.

impl PartialEq<i32> for Nat[src]

#[must_use]
fn eq(&self, v: &i32) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u128> for Nat[src]

#[must_use]
fn eq(&self, v: &u128) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u16> for Nat[src]

#[must_use]
fn eq(&self, v: &u16) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u32> for Nat[src]

#[must_use]
fn eq(&self, v: &u32) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u64> for Nat[src]

#[must_use]
fn eq(&self, v: &u64) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u8> for Nat[src]

#[must_use]
fn eq(&self, v: &u8) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<usize> for Nat[src]

#[must_use]
fn eq(&self, v: &usize) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialOrd<Nat> for Nat[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]

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]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl PartialOrd<u128> for Nat[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]

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]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl PartialOrd<u16> for Nat[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]

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]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl PartialOrd<u32> for Nat[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]

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]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl PartialOrd<u64> for Nat[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]

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]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl PartialOrd<u8> for Nat[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]

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]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl PartialOrd<usize> for Nat[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]

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]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl Rem<Nat> for Nat[src]

type Output = Nat

The resulting type after applying the % operator.

fn rem(self, other: Nat) -> Nat[src]

Performs the % operation. Read more

impl Rem<i32> for Nat[src]

type Output = Self

The resulting type after applying the % operator.

fn rem(self, other: i32) -> Self[src]

Performs the % operation. Read more

impl Rem<u128> for Nat[src]

type Output = Nat

The resulting type after applying the % operator.

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

Performs the % operation. Read more

impl Rem<u16> for Nat[src]

type Output = Nat

The resulting type after applying the % operator.

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

Performs the % operation. Read more

impl Rem<u32> for Nat[src]

type Output = Nat

The resulting type after applying the % operator.

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

Performs the % operation. Read more

impl Rem<u64> for Nat[src]

type Output = Nat

The resulting type after applying the % operator.

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

Performs the % operation. Read more

impl Rem<u8> for Nat[src]

type Output = Nat

The resulting type after applying the % operator.

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

Performs the % operation. Read more

impl Rem<usize> for Nat[src]

type Output = Nat

The resulting type after applying the % operator.

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

Performs the % operation. Read more

impl RemAssign<Nat> for Nat[src]

fn rem_assign(&mut self, other: Nat)[src]

Performs the %= operation. Read more

impl RemAssign<i32> for Nat[src]

fn rem_assign(&mut self, other: i32)[src]

Performs the %= operation. Read more

impl RemAssign<u128> for Nat[src]

fn rem_assign(&mut self, other: u128)[src]

Performs the %= operation. Read more

impl RemAssign<u16> for Nat[src]

fn rem_assign(&mut self, other: u16)[src]

Performs the %= operation. Read more

impl RemAssign<u32> for Nat[src]

fn rem_assign(&mut self, other: u32)[src]

Performs the %= operation. Read more

impl RemAssign<u64> for Nat[src]

fn rem_assign(&mut self, other: u64)[src]

Performs the %= operation. Read more

impl RemAssign<u8> for Nat[src]

fn rem_assign(&mut self, other: u8)[src]

Performs the %= operation. Read more

impl RemAssign<usize> for Nat[src]

fn rem_assign(&mut self, other: usize)[src]

Performs the %= operation. Read more

impl Sub<Nat> for Nat[src]

type Output = Nat

The resulting type after applying the - operator.

fn sub(self, other: Nat) -> Nat[src]

Performs the - operation. Read more

impl Sub<i32> for Nat[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, other: i32) -> Self[src]

Performs the - operation. Read more

impl Sub<u128> for Nat[src]

type Output = Nat

The resulting type after applying the - operator.

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

Performs the - operation. Read more

impl Sub<u16> for Nat[src]

type Output = Nat

The resulting type after applying the - operator.

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

Performs the - operation. Read more

impl Sub<u32> for Nat[src]

type Output = Nat

The resulting type after applying the - operator.

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

Performs the - operation. Read more

impl Sub<u64> for Nat[src]

type Output = Nat

The resulting type after applying the - operator.

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

Performs the - operation. Read more

impl Sub<u8> for Nat[src]

type Output = Nat

The resulting type after applying the - operator.

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

Performs the - operation. Read more

impl Sub<usize> for Nat[src]

type Output = Nat

The resulting type after applying the - operator.

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

Performs the - operation. Read more

impl SubAssign<Nat> for Nat[src]

fn sub_assign(&mut self, other: Nat)[src]

Performs the -= operation. Read more

impl SubAssign<i32> for Nat[src]

fn sub_assign(&mut self, other: i32)[src]

Performs the -= operation. Read more

impl SubAssign<u128> for Nat[src]

fn sub_assign(&mut self, other: u128)[src]

Performs the -= operation. Read more

impl SubAssign<u16> for Nat[src]

fn sub_assign(&mut self, other: u16)[src]

Performs the -= operation. Read more

impl SubAssign<u32> for Nat[src]

fn sub_assign(&mut self, other: u32)[src]

Performs the -= operation. Read more

impl SubAssign<u64> for Nat[src]

fn sub_assign(&mut self, other: u64)[src]

Performs the -= operation. Read more

impl SubAssign<u8> for Nat[src]

fn sub_assign(&mut self, other: u8)[src]

Performs the -= operation. Read more

impl SubAssign<usize> for Nat[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> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 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> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

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

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]