MeasureSystem

Trait MeasureSystem 

Source
pub trait MeasureSystem
where Self: Sized + PartialEq + PartialOrd,
{ type N: NumTrait; const DEBUG_UNIT: UnitFormat<'static, Self>; }
Expand description

The trait used to define a Measurement System

This defines two items for a given measure:

  1. What underlying Datatype is used (EX: f32, f64, etc)
  2. What unit should be used for debugging (only if the feature str is used)

Required Associated Constants§

Source

const DEBUG_UNIT: UnitFormat<'static, Self>

Required Associated Types§

Source

type N: NumTrait

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§