pub trait Unit: Copy + Debug {
    fn is_self_compatible(&self, rhs: &Self) -> bool { ... }
}

Provided Methods

When for example adding two numbers together. The two unit types need to be checked if both sides are compatible with each other. If this returns false the function will panic saying the units are not compatible.

Implementations on Foreign Types

Implementors