#[non_exhaustive]pub enum DateTimeValue<'a> {
Text(&'a str),
Date(CalendarDate),
Time(LocalTime),
DateAndTime(CalendarDate, LocalTime),
}Expand description
A date, a time or both, as one release or another declares it.
Converts from &str for the IFC4/IFC4X3 text form, and from
CalendarDate and LocalTime for the IFC2X3 record forms.
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(&'a str)
IFC4 and IFC4X3 IfcDateTime: ISO 8601 text, written as given.
Date(CalendarDate)
IFC2X3 IfcCalendarDate.
Time(LocalTime)
IFC2X3 IfcLocalTime.
DateAndTime(CalendarDate, LocalTime)
IFC2X3 IfcDateAndTime: an IfcCalendarDate and an IfcLocalTime.
Trait Implementations§
Source§impl<'a> Clone for DateTimeValue<'a>
impl<'a> Clone for DateTimeValue<'a>
Source§fn clone(&self) -> DateTimeValue<'a>
fn clone(&self) -> DateTimeValue<'a>
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<'a> Copy for DateTimeValue<'a>
Source§impl<'a> Debug for DateTimeValue<'a>
impl<'a> Debug for DateTimeValue<'a>
Source§impl Default for DateTimeValue<'_>
impl Default for DateTimeValue<'_>
Source§impl<'a> From<&'a str> for DateTimeValue<'a>
impl<'a> From<&'a str> for DateTimeValue<'a>
Source§impl From<CalendarDate> for DateTimeValue<'_>
impl From<CalendarDate> for DateTimeValue<'_>
Source§fn from(date: CalendarDate) -> Self
fn from(date: CalendarDate) -> Self
Converts to this type from the input type.
Source§impl From<LocalTime> for DateTimeValue<'_>
impl From<LocalTime> for DateTimeValue<'_>
Source§impl<'a> PartialEq for DateTimeValue<'a>
impl<'a> PartialEq for DateTimeValue<'a>
impl<'a> StructuralPartialEq for DateTimeValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for DateTimeValue<'a>
impl<'a> RefUnwindSafe for DateTimeValue<'a>
impl<'a> Send for DateTimeValue<'a>
impl<'a> Sync for DateTimeValue<'a>
impl<'a> Unpin for DateTimeValue<'a>
impl<'a> UnsafeUnpin for DateTimeValue<'a>
impl<'a> UnwindSafe for DateTimeValue<'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