StandardForm

Struct StandardForm 

Source
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

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

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.

Source

pub fn as_decimal(&self) -> Result<f64, ParseFloatError>

Converts the StandardForm into a decimal floating-point number in base 10. If successful, it returns the decimal value as an f64. If parsing fails, it returns a ParseFloatError.

Trait Implementations§

Source§

impl Add<f32> for StandardForm

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> 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 AddAssign for StandardForm

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. 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<f32> for StandardForm

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: Self) -> 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 DivAssign for StandardForm

Source§

fn div_assign(&mut self, other: Self)

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> 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 MulAssign for StandardForm

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl PartialEq<f32> for StandardForm

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 StandardForm

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 StandardForm

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 StandardForm

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 StandardForm

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 StandardForm

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 StandardForm

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 StandardForm

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 StandardForm

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 StandardForm

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 StandardForm

Source§

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

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

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

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

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

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

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

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

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

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

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

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 Sub<f32> for StandardForm

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> 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 SubAssign for StandardForm

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl TryFrom<&str> for StandardForm

Source§

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

Auto Trait Implementations§

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.