pub trait Unit: Copy {
// Required methods
fn abbreviation() -> &'static str;
fn singular() -> &'static str;
fn plural() -> &'static str;
}
Expand description
Trait to identify measurement units of individual quantities.
Required Methods§
sourcefn abbreviation() -> &'static str
fn abbreviation() -> &'static str
Unit abbreviation.
Object Safety§
This trait is not object safe.