Trait traffloat::units::Unit[][src]

pub trait Unit: Debug + Clone + Copy + Default + PartialEq<Self> + PartialOrd<Self> + Serialize + DeserializeOwned {
    fn value(self) -> f64;
fn value_mut(&mut self) -> &mut f64; }
Expand description

A common unit type

Required methods

Returns the raw value of this struct.

Returns a reference to the raw value of this struct.

Implementors