Number

Enum Number 

Source
pub enum Number {
Show 14 variants USize(usize), U8(u8), U16(u16), U32(u32), U64(u64), U128(u128), ISize(isize), I8(i8), I16(i16), I32(i32), I64(i64), I128(i128), F32(f32), F64(f64),
}

Variants§

§

USize(usize)

§

U8(u8)

§

U16(u16)

§

U32(u32)

§

U64(u64)

§

U128(u128)

§

ISize(isize)

§

I8(i8)

§

I16(i16)

§

I32(i32)

§

I64(i64)

§

I128(i128)

§

F32(f32)

§

F64(f64)

Implementations§

Source§

impl Number

Source

pub fn new(b: &Binary, token: BToken) -> Result<Number, Error>

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::Output

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::Output

Performs the + operation. Read more
Source§

impl Add<i128> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

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::Output

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::Output

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::Output

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::Output

Performs the + operation. Read more
Source§

impl Add<isize> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u128> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

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::Output

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::Output

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::Output

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::Output

Performs the + operation. Read more
Source§

impl Add<usize> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

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

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 Clone for Number

Source§

fn clone(&self) -> Number

Returns a duplicate 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 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::Output

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::Output

Performs the / operation. Read more
Source§

impl Div<i128> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

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::Output

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::Output

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::Output

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::Output

Performs the / operation. Read more
Source§

impl Div<isize> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u128> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

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::Output

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::Output

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::Output

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::Output

Performs the / operation. Read more
Source§

impl Div<usize> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

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

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 From<Number> for Any<'_>

Source§

fn from(value: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for f32

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for f64

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for i128

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for i16

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for i32

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for i64

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for i8

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for isize

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for u128

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for u16

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for u32

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for u64

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for u8

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for usize

Source§

fn from(orig: Number) -> Self

Converts to this type from the input type.
Source§

impl Mul<f32> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

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::Output

Performs the * operation. Read more
Source§

impl Mul<i128> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

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::Output

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::Output

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::Output

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::Output

Performs the * operation. Read more
Source§

impl Mul<isize> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u128> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

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::Output

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::Output

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::Output

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::Output

Performs the * operation. Read more
Source§

impl Mul<usize> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

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

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 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<i128> for Number

Source§

fn eq(&self, other: &i128) -> 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<isize> for Number

Source§

fn eq(&self, other: &isize) -> 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<u128> for Number

Source§

fn eq(&self, other: &u128) -> 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<usize> for Number

Source§

fn eq(&self, other: &usize) -> 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: &Self) -> 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<i128> for Number

Source§

fn partial_cmp(&self, other: &i128) -> 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<isize> for Number

Source§

fn partial_cmp(&self, other: &isize) -> 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<u128> for Number

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

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<usize> for Number

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

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 Rem<f32> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: f32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<f64> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: f64) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i128> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: i128) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i16> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: i16) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i32> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: i32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i64> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: i64) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i8> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: i8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<isize> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: isize) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u128> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: u128) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u16> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: u16) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u32> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: u32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u64> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: u64) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u8> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: u8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<usize> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

fn rem(self, other: usize) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. 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::Output

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::Output

Performs the - operation. Read more
Source§

impl Sub<i128> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

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::Output

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::Output

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::Output

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::Output

Performs the - operation. Read more
Source§

impl Sub<isize> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u128> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

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::Output

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::Output

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::Output

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::Output

Performs the - operation. Read more
Source§

impl Sub<usize> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

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

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 TryFrom<&Any<'_>> for Number

Source§

type Error = Error

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

fn try_from(value: &Any<'_>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Any<'_>> for Number

Source§

type Error = Error

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

fn try_from(value: Any<'_>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> ToOwned for T
where T: Clone,

Source§

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§

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