Trait traffloat_types::units::Unit[][src]

pub trait Unit: Debug + Clone + Copy + Default + PartialEq + PartialOrd + 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