UnitValue

Trait UnitValue 

Source
pub trait UnitValue<T>:
    Add<Output = T>
    + Sub<Output = T>
    + Mul<Output = T>
    + Div<Output = T>
    + Neg<Output = T>
    + AddAssign
    + PartialOrd
    + Clone
    + Copy
    + Default
    + Debug
    + Send
    + Sync
    + 'static
    + Exp
    + Tanh
    + Ln
    + One
    + Max
    + Min
    + MaxValue
    + InitialMaxValue
    + Abs
    + Sqrt
    + Infinity
    + Neginfinity
    + IsNaN
    + Bias
    + FromPrimitive { }
Expand description

Trait to consolidate traits that define various operations in the unit

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

Source§

impl UnitValue<f64> for f64

Implementors§