Skip to main content

Unit

Trait Unit 

Source
pub trait Unit:
    Additive
    + Mul<Self::Precision, Output = Self>
    + MulAssign<Self::Precision>
    + Div<Self::Precision, Output = Self>
    + DivAssign<Self::Precision>
    + Rem<Output = Self>
    + RemAssign
    + PartialEq {
    type Precision: Number + PrimitiveType + OverflowBehavior;
}
Expand description

To construct basic unit from their inner precision type.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Unit for f32

Source§

impl Unit for f64

Source§

impl Unit for i8

Source§

impl Unit for i16

Source§

impl Unit for i32

Source§

impl Unit for i64

Source§

impl Unit for isize

Source§

impl Unit for u8

Source§

impl Unit for u16

Source§

impl Unit for u32

Source§

impl Unit for u64

Source§

impl Unit for usize

Implementors§