Number

Enum Number 

Source
pub enum Number {
    Decimal(f64),
    StandardForm(StandardForm),
}
Expand description

Represents a numeric value that can be decimal (aka f64) or Fraction or Standardform number

Note : add fractions variant to is as well

Variants§

§

Decimal(f64)

Represents a floating-point decimal number.

§

StandardForm(StandardForm)

Represents a number in the StandardForm notation.

Trait Implementations§

Source§

impl Add<f32> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, other: f32) -> Self

Performs the + operation. Read more
Source§

impl Add<f64> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, other: f64) -> Self

Performs the + operation. Read more
Source§

impl Add<i16> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, other: i16) -> Self

Performs the + operation. Read more
Source§

impl Add<i32> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i64> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, other: i64) -> Self

Performs the + operation. Read more
Source§

impl Add<i8> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, other: i8) -> Self

Performs the + operation. Read more
Source§

impl Add<u16> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u32> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u64> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u8> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, other: Number) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<f32> for Number

Source§

fn add_assign(&mut self, other: f32)

Performs the += operation. Read more
Source§

impl AddAssign<f64> for Number

Source§

fn add_assign(&mut self, other: f64)

Performs the += operation. Read more
Source§

impl AddAssign<i16> for Number

Source§

fn add_assign(&mut self, other: i16)

Performs the += operation. Read more
Source§

impl AddAssign<i32> for Number

Source§

fn add_assign(&mut self, other: i32)

Performs the += operation. Read more
Source§

impl AddAssign<i64> for Number

Source§

fn add_assign(&mut self, other: i64)

Performs the += operation. Read more
Source§

impl AddAssign<i8> for Number

Source§

fn add_assign(&mut self, other: i8)

Performs the += operation. Read more
Source§

impl AddAssign<u16> for Number

Source§

fn add_assign(&mut self, other: u16)

Performs the += operation. Read more
Source§

impl AddAssign<u32> for Number

Source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
Source§

impl AddAssign<u64> for Number

Source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
Source§

impl AddAssign<u8> for Number

Source§

fn add_assign(&mut self, other: u8)

Performs the += operation. Read more
Source§

impl AddAssign for Number

Source§

fn add_assign(&mut self, other: Number)

Performs the += operation. Read more
Source§

impl Debug for Number

Source§

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

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

impl Display for Number

Source§

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

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

impl Div<f32> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, other: f32) -> Self

Performs the / operation. Read more
Source§

impl Div<f64> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, other: f64) -> Self

Performs the / operation. Read more
Source§

impl Div<i16> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, other: i16) -> Self

Performs the / operation. Read more
Source§

impl Div<i32> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i64> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, other: i64) -> Self

Performs the / operation. Read more
Source§

impl Div<i8> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, other: i8) -> Self

Performs the / operation. Read more
Source§

impl Div<u16> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u32> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u64> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u8> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, other: Number) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<f32> for Number

Source§

fn div_assign(&mut self, other: f32)

Performs the /= operation. Read more
Source§

impl DivAssign<f64> for Number

Source§

fn div_assign(&mut self, other: f64)

Performs the /= operation. Read more
Source§

impl DivAssign<i16> for Number

Source§

fn div_assign(&mut self, other: i16)

Performs the /= operation. Read more
Source§

impl DivAssign<i32> for Number

Source§

fn div_assign(&mut self, other: i32)

Performs the /= operation. Read more
Source§

impl DivAssign<i64> for Number

Source§

fn div_assign(&mut self, other: i64)

Performs the /= operation. Read more
Source§

impl DivAssign<i8> for Number

Source§

fn div_assign(&mut self, other: i8)

Performs the /= operation. Read more
Source§

impl DivAssign<u16> for Number

Source§

fn div_assign(&mut self, other: u16)

Performs the /= operation. Read more
Source§

impl DivAssign<u32> for Number

Source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
Source§

impl DivAssign<u64> for Number

Source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
Source§

impl DivAssign<u8> for Number

Source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
Source§

impl DivAssign for Number

Source§

fn div_assign(&mut self, other: Number)

Performs the /= operation. Read more
Source§

impl Mul<f32> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, other: f32) -> Self

Performs the * operation. Read more
Source§

impl Mul<f64> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, other: f64) -> Self

Performs the * operation. Read more
Source§

impl Mul<i16> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, other: i16) -> Self

Performs the * operation. Read more
Source§

impl Mul<i32> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i64> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, other: i64) -> Self

Performs the * operation. Read more
Source§

impl Mul<i8> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, other: i8) -> Self

Performs the * operation. Read more
Source§

impl Mul<u16> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u32> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u64> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u8> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, other: Number) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign<f32> for Number

Source§

fn mul_assign(&mut self, other: f32)

Performs the *= operation. Read more
Source§

impl MulAssign<f64> for Number

Source§

fn mul_assign(&mut self, other: f64)

Performs the *= operation. Read more
Source§

impl MulAssign<i16> for Number

Source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
Source§

impl MulAssign<i32> for Number

Source§

fn mul_assign(&mut self, other: i32)

Performs the *= operation. Read more
Source§

impl MulAssign<i64> for Number

Source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
Source§

impl MulAssign<i8> for Number

Source§

fn mul_assign(&mut self, other: i8)

Performs the *= operation. Read more
Source§

impl MulAssign<u16> for Number

Source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
Source§

impl MulAssign<u32> for Number

Source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
Source§

impl MulAssign<u64> for Number

Source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
Source§

impl MulAssign<u8> for Number

Source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
Source§

impl MulAssign for Number

Source§

fn mul_assign(&mut self, other: Number)

Performs the *= operation. Read more
Source§

impl PartialEq<f32> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<f64> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i16> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i32> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i64> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i8> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u16> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u32> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u64> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u8> for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd<f32> for Number

Source§

fn partial_cmp(&self, other: &f32) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<f64> for Number

Source§

fn partial_cmp(&self, other: &f64) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i16> for Number

Source§

fn partial_cmp(&self, other: &i16) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i32> for Number

Source§

fn partial_cmp(&self, other: &i32) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i64> for Number

Source§

fn partial_cmp(&self, other: &i64) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i8> for Number

Source§

fn partial_cmp(&self, other: &i8) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u16> for Number

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u32> for Number

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u64> for Number

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u8> for Number

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd for Number

Source§

fn partial_cmp(&self, other: &Self) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Power for Number

Source§

type Output = Number

The output type of the exponentiation operation.
Source§

fn to_the_power_of(self, other: Number) -> Self::Output

Raises self to the power of exp. Read more
Source§

impl Sub<f32> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, other: f32) -> Self

Performs the - operation. Read more
Source§

impl Sub<f64> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, other: f64) -> Self

Performs the - operation. Read more
Source§

impl Sub<i16> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, other: i16) -> Self

Performs the - operation. Read more
Source§

impl Sub<i32> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i64> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, other: i64) -> Self

Performs the - operation. Read more
Source§

impl Sub<i8> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, other: i8) -> Self

Performs the - operation. Read more
Source§

impl Sub<u16> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u32> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u64> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u8> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, other: Number) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<f32> for Number

Source§

fn sub_assign(&mut self, other: f32)

Performs the -= operation. Read more
Source§

impl SubAssign<f64> for Number

Source§

fn sub_assign(&mut self, other: f64)

Performs the -= operation. Read more
Source§

impl SubAssign<i16> for Number

Source§

fn sub_assign(&mut self, other: i16)

Performs the -= operation. Read more
Source§

impl SubAssign<i32> for Number

Source§

fn sub_assign(&mut self, other: i32)

Performs the -= operation. Read more
Source§

impl SubAssign<i64> for Number

Source§

fn sub_assign(&mut self, other: i64)

Performs the -= operation. Read more
Source§

impl SubAssign<i8> for Number

Source§

fn sub_assign(&mut self, other: i8)

Performs the -= operation. Read more
Source§

impl SubAssign<u16> for Number

Source§

fn sub_assign(&mut self, other: u16)

Performs the -= operation. Read more
Source§

impl SubAssign<u32> for Number

Source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
Source§

impl SubAssign<u64> for Number

Source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
Source§

impl SubAssign<u8> for Number

Source§

fn sub_assign(&mut self, other: u8)

Performs the -= operation. Read more
Source§

impl SubAssign for Number

Source§

fn sub_assign(&mut self, other: Number)

Performs the -= operation. Read more
Source§

impl TryFrom<&str> for Number

Source§

type Error = ParsingNumberError

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

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for Number

Auto Trait Implementations§

§

impl Freeze for Number

§

impl RefUnwindSafe for Number

§

impl Send for Number

§

impl Sync for Number

§

impl Unpin for Number

§

impl UnwindSafe for Number

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> ToString for T
where T: Display + ?Sized,

Source§

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

Source§

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

Source§

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.