Skip to main content

Kilogram

Type Alias Kilogram 

Source
pub type Kilogram<V> = MKS<V, Kilogram>;

Aliased Type§

pub struct Kilogram<V> {
    pub value_unsafe: V,
    /* private fields */
}

Fields§

§value_unsafe: V

This is the value of whatever type we’re giving units. Using it directly bypasses all of the dimensional analysis that having a unit system provides, and should be avoided whenever possible.

If using this member is necessary, it is strongly encouraged to wrap the calculation in a dimensionally-safe interface.

Trait Implementations§

Source§

impl<V> Mass for Kilogram<V>