#[non_exhaustive]pub enum AuthoredDuration<'m> {
Text(&'m str),
TimeMeasure(f64),
}Expand description
A duration as the model’s release types it.
IFC4 and IFC4X3 declare IfcDuration, ISO 8601 duration text; IFC2X3
declares IfcTimeMeasure, a number in the project’s time unit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(&'m str)
IFC4/IFC4X3 IfcDuration text.
TimeMeasure(f64)
IFC2X3 IfcTimeMeasure, in the project’s time unit.
Implementations§
Trait Implementations§
Source§impl<'m> Clone for AuthoredDuration<'m>
impl<'m> Clone for AuthoredDuration<'m>
Source§fn clone(&self) -> AuthoredDuration<'m>
fn clone(&self) -> AuthoredDuration<'m>
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<'m> Copy for AuthoredDuration<'m>
Source§impl<'m> Debug for AuthoredDuration<'m>
impl<'m> Debug for AuthoredDuration<'m>
Source§impl<'m> PartialEq for AuthoredDuration<'m>
impl<'m> PartialEq for AuthoredDuration<'m>
impl<'m> StructuralPartialEq for AuthoredDuration<'m>
Auto Trait Implementations§
impl<'m> Freeze for AuthoredDuration<'m>
impl<'m> RefUnwindSafe for AuthoredDuration<'m>
impl<'m> Send for AuthoredDuration<'m>
impl<'m> Sync for AuthoredDuration<'m>
impl<'m> Unpin for AuthoredDuration<'m>
impl<'m> UnsafeUnpin for AuthoredDuration<'m>
impl<'m> UnwindSafe for AuthoredDuration<'m>
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