pub struct StandardForm { /* private fields */ }
Expand description

Represents a number in standard form.

The Standardform struct holds the significand (mantissa) of the number and an exponent that determines the power of 10 by which the significand should be multiplied.

Implementations§

source§

impl StandardForm

source

pub fn new(mantissa: f64, exponent: i8) -> Self

Creates a new instance of StandardForm with the given mantissa and exponent.

This constructor initializes a new StandardForm instance with the provided mantissa and exponent. It’s important to note that the provided mantissa and exponent may not be exactly the same as the values stored in the resulting instance. The values are adjusted automatically to adhere to the rules of standard form representation, ensuring the most appropriate form for the given input.

Rules :

If the current mantissa and exponent do not satisfy the standard form representation requirements, this method will adjust them while maintaining the value of the number represented. The adjustment ensures that the mantissa is between 1 (inclusive) and 10 (exclusive) and the exponent is such that the product of mantissa and 10 raised to the exponent yields the original number.

source§

impl StandardForm

source

pub const fn mantissa(&self) -> &f64

Returns a reference to the StandardForm representing the significand (mantissa) of the number.

source

pub const fn exponent(&self) -> &i8

Returns the exponent that determines the power of 10 by which the significand should be multiplied.

source§

impl StandardForm

source

pub fn to_scientific_notation(&self) -> String

Returns the string representation of the number in scientific notation.

source

pub fn to_engineering_notation(&self) -> String

Returns the string representation of the number in engineering notation.

Trait Implementations§

source§

impl Add<StandardForm> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<f32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<f64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<i8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<StandardForm> for StandardForm

source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
source§

impl AddAssign<f32> for StandardForm

source§

fn add_assign(&mut self, other: f32)

Performs the += operation. Read more
source§

impl AddAssign<f64> for StandardForm

source§

fn add_assign(&mut self, other: f64)

Performs the += operation. Read more
source§

impl AddAssign<i16> for StandardForm

source§

fn add_assign(&mut self, other: i16)

Performs the += operation. Read more
source§

impl AddAssign<i32> for StandardForm

source§

fn add_assign(&mut self, other: i32)

Performs the += operation. Read more
source§

impl AddAssign<i64> for StandardForm

source§

fn add_assign(&mut self, other: i64)

Performs the += operation. Read more
source§

impl AddAssign<i8> for StandardForm

source§

fn add_assign(&mut self, other: i8)

Performs the += operation. Read more
source§

impl AddAssign<u16> for StandardForm

source§

fn add_assign(&mut self, other: u16)

Performs the += operation. Read more
source§

impl AddAssign<u32> for StandardForm

source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
source§

impl AddAssign<u64> for StandardForm

source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
source§

impl AddAssign<u8> for StandardForm

source§

fn add_assign(&mut self, other: u8)

Performs the += operation. Read more
source§

impl Clone for StandardForm

source§

fn clone(&self) -> StandardForm

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for StandardForm

source§

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

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

impl Default for StandardForm

source§

fn default() -> Self

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

impl Display for StandardForm

source§

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

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

impl Div<StandardForm> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<f32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<f64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<i8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<u8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<StandardForm> for StandardForm

source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
source§

impl DivAssign<f32> for StandardForm

source§

fn div_assign(&mut self, other: f32)

Performs the /= operation. Read more
source§

impl DivAssign<f64> for StandardForm

source§

fn div_assign(&mut self, other: f64)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for StandardForm

source§

fn div_assign(&mut self, other: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for StandardForm

source§

fn div_assign(&mut self, other: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i64> for StandardForm

source§

fn div_assign(&mut self, other: i64)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for StandardForm

source§

fn div_assign(&mut self, other: i8)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for StandardForm

source§

fn div_assign(&mut self, other: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for StandardForm

source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for StandardForm

source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for StandardForm

source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
source§

impl From<f32> for StandardForm

source§

fn from(value: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for StandardForm

source§

fn from(value: f64) -> Self

Converts to this type from the input type.
source§

impl From<i16> for StandardForm

source§

fn from(value: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for StandardForm

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for StandardForm

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for StandardForm

source§

fn from(value: i8) -> Self

Converts to this type from the input type.
source§

impl From<u16> for StandardForm

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for StandardForm

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for StandardForm

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for StandardForm

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl Mul<StandardForm> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<f32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<f64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<i8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<u8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<StandardForm> for StandardForm

source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
source§

impl MulAssign<f32> for StandardForm

source§

fn mul_assign(&mut self, other: f32)

Performs the *= operation. Read more
source§

impl MulAssign<f64> for StandardForm

source§

fn mul_assign(&mut self, other: f64)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for StandardForm

source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for StandardForm

source§

fn mul_assign(&mut self, other: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i64> for StandardForm

source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for StandardForm

source§

fn mul_assign(&mut self, other: i8)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for StandardForm

source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for StandardForm

source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for StandardForm

source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for StandardForm

source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
source§

impl Neg for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Ord for StandardForm

source§

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

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

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

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

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

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

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

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

impl PartialEq<StandardForm> for StandardForm

source§

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

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

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

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

impl PartialEq<f32> for StandardForm

source§

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

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

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

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

impl PartialEq<f64> for StandardForm

source§

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

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

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

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

impl PartialEq<i16> for StandardForm

source§

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

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

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

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

impl PartialEq<i32> for StandardForm

source§

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

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

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

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

impl PartialEq<i64> for StandardForm

source§

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

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

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

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

impl PartialEq<i8> for StandardForm

source§

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

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

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

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

impl PartialEq<u16> for StandardForm

source§

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

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

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

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

impl PartialEq<u32> for StandardForm

source§

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

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

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

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

impl PartialEq<u64> for StandardForm

source§

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

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

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

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

impl PartialEq<u8> for StandardForm

source§

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

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

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

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

impl PartialOrd<StandardForm> for StandardForm

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

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

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

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

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

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

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

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

impl PartialOrd<f32> for StandardForm

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

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

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

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

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

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

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

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

impl PartialOrd<f64> for StandardForm

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

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

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

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

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

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

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

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

impl PartialOrd<i16> for StandardForm

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

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

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

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

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

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

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

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

impl PartialOrd<i32> for StandardForm

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

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

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

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

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

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

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

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

impl PartialOrd<i64> for StandardForm

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

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

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

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

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

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

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

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

impl PartialOrd<i8> for StandardForm

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

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

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

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

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

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

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

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

impl PartialOrd<u16> for StandardForm

source§

fn partial_cmp(&self, other: &u16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

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

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

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

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

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

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

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

impl PartialOrd<u32> for StandardForm

source§

fn partial_cmp(&self, other: &u32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

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

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

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

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

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

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

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

impl PartialOrd<u64> for StandardForm

source§

fn partial_cmp(&self, other: &u64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

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

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

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

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

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

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

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

impl PartialOrd<u8> for StandardForm

source§

fn partial_cmp(&self, other: &u8) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

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

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

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

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

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

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

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

impl Rem<StandardForm> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<f32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<f64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<i16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<i32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<i64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<i8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<u16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<u32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<u64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<u8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl RemAssign<StandardForm> for StandardForm

source§

fn rem_assign(&mut self, other: StandardForm)

Performs the %= operation. Read more
source§

impl RemAssign<f32> for StandardForm

source§

fn rem_assign(&mut self, other: f32)

Performs the %= operation. Read more
source§

impl RemAssign<f64> for StandardForm

source§

fn rem_assign(&mut self, other: f64)

Performs the %= operation. Read more
source§

impl RemAssign<i16> for StandardForm

source§

fn rem_assign(&mut self, other: i16)

Performs the %= operation. Read more
source§

impl RemAssign<i32> for StandardForm

source§

fn rem_assign(&mut self, other: i32)

Performs the %= operation. Read more
source§

impl RemAssign<i64> for StandardForm

source§

fn rem_assign(&mut self, other: i64)

Performs the %= operation. Read more
source§

impl RemAssign<i8> for StandardForm

source§

fn rem_assign(&mut self, other: i8)

Performs the %= operation. Read more
source§

impl RemAssign<u16> for StandardForm

source§

fn rem_assign(&mut self, other: u16)

Performs the %= operation. Read more
source§

impl RemAssign<u32> for StandardForm

source§

fn rem_assign(&mut self, other: u32)

Performs the %= operation. Read more
source§

impl RemAssign<u64> for StandardForm

source§

fn rem_assign(&mut self, other: u64)

Performs the %= operation. Read more
source§

impl RemAssign<u8> for StandardForm

source§

fn rem_assign(&mut self, other: u8)

Performs the %= operation. Read more
source§

impl Sub<StandardForm> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<f32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<f64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<i8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u16> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u32> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u64> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u8> for StandardForm

§

type Output = StandardForm

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign<StandardForm> for StandardForm

source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
source§

impl SubAssign<f32> for StandardForm

source§

fn sub_assign(&mut self, other: f32)

Performs the -= operation. Read more
source§

impl SubAssign<f64> for StandardForm

source§

fn sub_assign(&mut self, other: f64)

Performs the -= operation. Read more
source§

impl SubAssign<i16> for StandardForm

source§

fn sub_assign(&mut self, other: i16)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for StandardForm

source§

fn sub_assign(&mut self, other: i32)

Performs the -= operation. Read more
source§

impl SubAssign<i64> for StandardForm

source§

fn sub_assign(&mut self, other: i64)

Performs the -= operation. Read more
source§

impl SubAssign<i8> for StandardForm

source§

fn sub_assign(&mut self, other: i8)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for StandardForm

source§

fn sub_assign(&mut self, other: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for StandardForm

source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u64> for StandardForm

source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for StandardForm

source§

fn sub_assign(&mut self, other: u8)

Performs the -= operation. Read more
source§

impl TryFrom<&[u8]> for StandardForm

§

type Error = ParsingStandardFormError

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

fn try_from(value: &[u8]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&str> for StandardForm

§

type Error = ParsingStandardFormError

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 Eq for StandardForm

source§

impl StructuralPartialEq for StandardForm

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

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

source§

default fn to_string(&self) -> String

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

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

§

type Error = Infallible

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

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

Performs the conversion.
source§

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

§

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

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

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

Performs the conversion.