#[non_exhaustive]pub struct SiUnitDraft<'a> {
pub unit_type: &'a str,
pub name: &'a str,
pub prefix: Option<&'a str>,
}Expand description
Authored fields for IfcSIUnit.
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.unit_type: &'a strIfcNamedUnit.UnitType, an IfcUnitEnum constant such as LENGTHUNIT.
name: &'a strIfcSIUnit.Name, an IfcSIUnitName constant such as METRE.
prefix: Option<&'a str>IfcSIUnit.Prefix, an IfcSIPrefix constant such as MILLI.
None writes an unprefixed unit. A prefix that is not a schema
constant is refused; see the module note.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for SiUnitDraft<'a>
impl<'a> Clone for SiUnitDraft<'a>
impl<'a> Copy for SiUnitDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for SiUnitDraft<'a>
impl<'a> RefUnwindSafe for SiUnitDraft<'a>
impl<'a> Send for SiUnitDraft<'a>
impl<'a> Sync for SiUnitDraft<'a>
impl<'a> Unpin for SiUnitDraft<'a>
impl<'a> UnsafeUnpin for SiUnitDraft<'a>
impl<'a> UnwindSafe for SiUnitDraft<'a>
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