pub struct LengthUnit {
pub name: String,
pub metres_per_unit: f64,
}Expand description
A length unit reduced to a metre factor.
Fields§
§name: StringUnit name, either an SI token such as MILLIMETRE or the authored
IfcConversionBasedUnit.Name such as FOOT.
metres_per_unit: f64Metres per one unit. Always finite and strictly positive.
Trait Implementations§
Source§impl Clone for LengthUnit
impl Clone for LengthUnit
Source§impl Debug for LengthUnit
impl Debug for LengthUnit
Source§impl PartialEq for LengthUnit
impl PartialEq for LengthUnit
impl StructuralPartialEq for LengthUnit
Auto Trait Implementations§
impl Freeze for LengthUnit
impl RefUnwindSafe for LengthUnit
impl Send for LengthUnit
impl Sync for LengthUnit
impl Unpin for LengthUnit
impl UnsafeUnpin for LengthUnit
impl UnwindSafe for LengthUnit
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