irox_units::units

Trait Unit

Source
pub trait Unit<T> {
    type Output;

    // Required method
    fn as_unit(&self, unit: T) -> Self::Output
       where Self: Sized;
}
Expand description

Trait to provide access to unit conversions

Required Associated Types§

Required Methods§

Source

fn as_unit(&self, unit: T) -> Self::Output
where Self: Sized,

Implementors§