pub struct SiUnitName {
pub symbol: &'static str,
pub prefix_power: i32,
pub base_scale: f64,
}Expand description
Descriptor for an IfcSIUnitName.
Fields§
§symbol: &'static strBase display symbol at no prefix, e.g. m, m\u{00B2}, g, Pa.
prefix_power: i32Power the SI prefix is raised to for scale purposes: 1 normally, 2 for
SQUARE_METRE, 3 for CUBIC_METRE (a CENTI cubic-metre is (10^-2)^3).
base_scale: f64Factor that converts a value in the unprefixed unit to the canonical SI
base of its dimension. 1.0 for everything except GRAM (base is kg,
so a gram is 1e-3).
Trait Implementations§
Source§impl Clone for SiUnitName
impl Clone for SiUnitName
Source§fn clone(&self) -> SiUnitName
fn clone(&self) -> SiUnitName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SiUnitName
impl Debug for SiUnitName
impl Copy for SiUnitName
Auto Trait Implementations§
impl Freeze for SiUnitName
impl RefUnwindSafe for SiUnitName
impl Send for SiUnitName
impl Sync for SiUnitName
impl Unpin for SiUnitName
impl UnwindSafe for SiUnitName
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