Trait BaseUnitForDim

Source
pub trait BaseUnitForDim {
    type Unit: Unit<Dimension = Self>;

    // Required method
    fn base_unit() -> Self::Unit;
}

Required Associated Types§

Source

type Unit: Unit<Dimension = Self>

Required Methods§

Source

fn base_unit() -> Self::Unit

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§