[][src]Trait mech::QuantityMath

pub trait QuantityMath {
    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) -> u64;
fn add(self, u64) -> Result<u64, ErrorType>;
fn sub(self, u64) -> Result<u64, ErrorType>;
fn multiply(self, u64) -> Result<u64, ErrorType>;
fn divide(self, u64) -> Result<u64, ErrorType>;
fn less_than(self, u64) -> Result<u64, ErrorType>;
fn greater_than(self, u64) -> Result<u64, ErrorType>;
fn less_than_equal(self, u64) -> Result<u64, ErrorType>;
fn greater_than_equal(self, u64) -> Result<u64, ErrorType>;
fn equal(self, u64) -> Result<u64, ErrorType>;
fn not_equal(self, u64) -> Result<u64, ErrorType>;
fn to_string(self) -> String;
fn format(self) -> String;
fn to_float(self) -> f64;
fn to_u64(self) -> u64; }

Required methods

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

fn add(self, u64) -> Result<u64, ErrorType>

fn sub(self, u64) -> Result<u64, ErrorType>

fn multiply(self, u64) -> Result<u64, ErrorType>

fn divide(self, u64) -> Result<u64, ErrorType>

fn less_than(self, u64) -> Result<u64, ErrorType>

fn greater_than(self, u64) -> Result<u64, ErrorType>

fn less_than_equal(self, u64) -> Result<u64, ErrorType>

fn greater_than_equal(self, u64) -> Result<u64, ErrorType>

fn equal(self, u64) -> Result<u64, ErrorType>

fn not_equal(self, u64) -> Result<u64, ErrorType>

fn to_string(self) -> String

fn format(self) -> String

fn to_float(self) -> f64

fn to_u64(self) -> u64

Loading content...

Implementations on Foreign Types

impl QuantityMath for u64[src]

Loading content...

Implementors

Loading content...