pub struct WorkCalendar<'m> { /* private fields */ }Expand description
A borrowed view of an IfcWorkCalendar, read against one release.
Implementations§
Source§impl<'m> WorkCalendar<'m>
impl<'m> WorkCalendar<'m>
Sourcepub fn release(&self) -> SchemaVersion
pub fn release(&self) -> SchemaVersion
The release this calendar is read against.
Sourcepub fn identification(&self) -> Option<&'m str>
pub fn identification(&self) -> Option<&'m str>
The user-facing identification code.
Sourcepub fn predefined_type(&self) -> Option<&'m str>
pub fn predefined_type(&self) -> Option<&'m str>
The predefined type token, without its dots.
Sourcepub fn working_times(&self, model: &Model) -> Vec<WorkTime>
pub fn working_times(&self, model: &Model) -> Vec<WorkTime>
Periods when work happens.
Sourcepub fn exception_times(&self, model: &Model) -> Vec<WorkTime>
pub fn exception_times(&self, model: &Model) -> Vec<WorkTime>
Periods when work does not happen, such as holidays.
Trait Implementations§
Source§impl<'m> Clone for WorkCalendar<'m>
impl<'m> Clone for WorkCalendar<'m>
Source§fn clone(&self) -> WorkCalendar<'m>
fn clone(&self) -> WorkCalendar<'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 WorkCalendar<'m>
Auto Trait Implementations§
impl<'m> Freeze for WorkCalendar<'m>
impl<'m> RefUnwindSafe for WorkCalendar<'m>
impl<'m> Send for WorkCalendar<'m>
impl<'m> Sync for WorkCalendar<'m>
impl<'m> Unpin for WorkCalendar<'m>
impl<'m> UnsafeUnpin for WorkCalendar<'m>
impl<'m> UnwindSafe for WorkCalendar<'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