alloy::mathTrait ToUnit
source pub trait ToUnit: Sealed {
// Required method
fn to_unit(self) -> Unit;
}
Expand description
A closed trait used to enable conversions of Angle types into Unit
representation.
This is a requirement for being able to generically define angular conversions.
Note: This may become unsealed in a future update
Converts this angular unit into a Unit angle.