[][src]Trait mech_core::QuantityMath

pub trait QuantityMath {
    fn is_number(self) -> bool;
fn is_other(self) -> bool;
fn domain(self) -> u64;
fn range(self) -> i64;
fn set_range(&mut self, range: i64);
fn mantissa(self) -> i64;
fn is_negative(self) -> bool;
fn negate(self) -> Quantity;
fn add(self, _: Quantity) -> Quantity;
fn sub(self, _: Quantity) -> Quantity;
fn multiply(self, _: Quantity) -> Quantity;
fn divide(self, _: Quantity) -> Quantity;
fn less_than(self, _: Quantity) -> bool;
fn greater_than(self, _: Quantity) -> bool;
fn to_string(self) -> String;
fn to_float(self) -> f64;
fn to_u64(self) -> u64; }

Required methods

fn is_number(self) -> bool

fn is_other(self) -> bool

fn domain(self) -> u64

fn range(self) -> i64

fn set_range(&mut self, range: i64)

fn mantissa(self) -> i64

fn is_negative(self) -> bool

fn negate(self) -> Quantity

fn add(self, _: Quantity) -> Quantity

fn sub(self, _: Quantity) -> Quantity

fn multiply(self, _: Quantity) -> Quantity

fn divide(self, _: Quantity) -> Quantity

fn less_than(self, _: Quantity) -> bool

fn greater_than(self, _: Quantity) -> bool

fn to_string(self) -> String

fn to_float(self) -> f64

fn to_u64(self) -> u64

Loading content...

Implementors

impl QuantityMath for Quantity[src]

Loading content...