pub trait UnitHalves {
type First;
type Second;
}Expand description
The units the halves of a tuple take from a unit meant for the pair.
A tuple is scaled either by a step in one variable, which both halves take, or by a quantity whose unit is the pair the halves already carry. Naming both through one trait keeps a single scaling rule for tuples rather than two that would overlap.
Required Associated Types§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".