pub trait Unit: Copy {
fn abbreviation() -> &'static str;
fn singular() -> &'static str;
fn plural() -> &'static str;
}
Expand description
Trait to identify measurement units of individual quantities.
Required methods
fn abbreviation() -> &'static str
fn abbreviation() -> &'static str
Unit abbreviation.