Precision

Trait Precision 

Source
pub trait Precision: 'static {
    const EPSILON: &'static Self;
    const DECIMAL_DIGITS: Option<usize>;
    const DECIMAL_PRECISION: &'static Self;
}

Required Associated Constants§

Source

const EPSILON: &'static Self

Source

const DECIMAL_DIGITS: Option<usize>

Source

const DECIMAL_PRECISION: &'static Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Precision for bool

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for f32

Source§

const EPSILON: &'static Self

Source§

const DECIMAL_DIGITS: Option<usize>

Source§

const DECIMAL_PRECISION: &'static Self

Source§

impl Precision for f64

Source§

const EPSILON: &'static Self

Source§

const DECIMAL_DIGITS: Option<usize>

Source§

const DECIMAL_PRECISION: &'static Self

Source§

impl Precision for i8

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for i16

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for i32

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for i64

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for i128

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for isize

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for u8

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for u16

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for u32

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for u64

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for u128

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Source§

impl Precision for usize

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON

Implementors§

Source§

impl<T: Arithmetic> Precision for T

Source§

const EPSILON: &'static Self = Self::ZERO

Source§

const DECIMAL_DIGITS: Option<usize> = None

Source§

const DECIMAL_PRECISION: &'static Self = Self::EPSILON