pub struct LengthUnit {
pub scale: f64,
pub unusable_factor: Option<u32>,
}Expand description
A project’s length unit under input admission (#7678, CORE-15): the one home of the “unusable unit factor” policy every caller follows.
Fields§
§scale: f64Metres per file unit as the data model reads it, and as main did: an overflowing declared factor reads as infinity, any other unusable one as metres. Data readers and exporters keep this value.
unusable_factor: Option<u32>The IFCMEASUREWITHUNIT holding a declared conversion factor that is
not a positive finite number. Geometry must refuse to mesh against it
(fail closed and count it): no metre scale is right for it.
Implementations§
Source§impl LengthUnit
impl LengthUnit
Sourcepub fn for_geometry(self) -> Result<f64>
pub fn for_geometry(self) -> Result<f64>
The scale geometry may mesh with, or the refusal of the factor.
Trait Implementations§
Source§impl Clone for LengthUnit
impl Clone for LengthUnit
Source§fn clone(&self) -> LengthUnit
fn clone(&self) -> LengthUnit
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 LengthUnit
impl Debug for LengthUnit
Source§impl PartialEq for LengthUnit
impl PartialEq for LengthUnit
impl Copy 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 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