pub struct UnitInfo {
pub dimension: Dimension,
pub constness: UnitConstness,
pub scale: UnitScale,
}Expand description
Information about a registered unit.
Fields§
§dimension: DimensionThe dimension this unit measures.
constness: UnitConstnessWhether this unit may appear in compile-time (const) contexts.
scale: UnitScaleScale factor to convert 1 of this unit to base SI units.
e.g., km -> Static(1000.0) (1 km = 1000 m)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitInfo
impl RefUnwindSafe for UnitInfo
impl Send for UnitInfo
impl Sync for UnitInfo
impl Unpin for UnitInfo
impl UnsafeUnpin for UnitInfo
impl UnwindSafe for UnitInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more