Trait emath::Numeric[][src]

pub trait Numeric: Clone + Copy + PartialEq + PartialOrd + 'static {
    const INTEGRAL: bool;
    const MIN: Self;
    const MAX: Self;

    fn to_f64(self) -> f64;
fn from_f64(num: f64) -> Self; }

Implemented for all builtin numeric types

Associated Constants

const INTEGRAL: bool[src]

Is this an integer type?

const MIN: Self[src]

Smallest finite value

const MAX: Self[src]

Largest finite value

Loading content...

Required methods

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

Loading content...

Implementations on Foreign Types

impl Numeric for f32[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for f64[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for i8[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for u8[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for i16[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for u16[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for i32[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for u32[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for i64[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for u64[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for isize[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

impl Numeric for usize[src]

const INTEGRAL: bool[src]

const MIN: Self[src]

const MAX: Self[src]

fn to_f64(self) -> f64[src]

fn from_f64(num: f64) -> Self[src]

Loading content...

Implementors

Loading content...