#[non_exhaustive]pub struct NamedUnit {
pub name: &'static str,
pub unit_type: &'static str,
pub dimensions: [i32; 7],
pub mantissa: f64,
pub decimal_exponent: i32,
}Expand description
One named conversion-based unit.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'static strThe designation, as IFC4 Table 673 spells it (case-insensitive in a file).
unit_type: &'static strThe IfcUnitEnum constant of the unit.
dimensions: [i32; 7]SI dimensional exponents [L, M, T, I, Θ, N, J].
mantissa: f64The factor into SI base units is mantissa * 10^decimal_exponent.
decimal_exponent: i32See Self::mantissa.
Implementations§
Trait Implementations§
impl Copy for NamedUnit
impl StructuralPartialEq for NamedUnit
Auto Trait Implementations§
impl Freeze for NamedUnit
impl RefUnwindSafe for NamedUnit
impl Send for NamedUnit
impl Sync for NamedUnit
impl Unpin for NamedUnit
impl UnsafeUnpin for NamedUnit
impl UnwindSafe for NamedUnit
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