pub trait Unit:
Copy
+ Eq
+ Hash
+ Debug
+ 'static {
const ALL: &'static [Self];
const NAMES: &'static [&'static str];
// Required methods
fn name(self) -> &'static str;
fn steps(self) -> i64;
}Expand description
Each unit is a whole number of the quantity’s smallest step: conversion is integer arithmetic.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".