#[non_exhaustive]pub struct LengthUnitOptions {
pub area_and_volume: bool,
pub remove_replaced_units: bool,
pub dry_run: bool,
}Expand description
What IfcModel::convert_length_unit does beyond the length 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.area_and_volume: boolReplace the area and volume units by the square and cube of the new
length unit, rescaling their values (default true).
remove_replaced_units: boolRemove replaced units nothing else uses (default true).
dry_run: boolReport what would change without changing the model.
Implementations§
Trait Implementations§
Source§impl Clone for LengthUnitOptions
impl Clone for LengthUnitOptions
Source§fn clone(&self) -> LengthUnitOptions
fn clone(&self) -> LengthUnitOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LengthUnitOptions
Source§impl Debug for LengthUnitOptions
impl Debug for LengthUnitOptions
Source§impl Default for LengthUnitOptions
impl Default for LengthUnitOptions
impl Eq for LengthUnitOptions
Source§impl PartialEq for LengthUnitOptions
impl PartialEq for LengthUnitOptions
impl StructuralPartialEq for LengthUnitOptions
Auto Trait Implementations§
impl Freeze for LengthUnitOptions
impl RefUnwindSafe for LengthUnitOptions
impl Send for LengthUnitOptions
impl Sync for LengthUnitOptions
impl Unpin for LengthUnitOptions
impl UnsafeUnpin for LengthUnitOptions
impl UnwindSafe for LengthUnitOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.