pub struct WorkControl<'m> { /* private fields */ }Expand description
A borrowed view of an IfcWorkPlan or IfcWorkSchedule.
Implementations§
Source§impl<'m> WorkControl<'m>
impl<'m> WorkControl<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Option<Self>
pub fn new(id: EntityId, entity: &'m Entity) -> Option<Self>
Wrap an entity if it is a work plan or work schedule.
Sourcepub fn kind(&self) -> WorkControlKind
pub fn kind(&self) -> WorkControlKind
Whether this is a plan or a schedule.
Sourcepub fn description(&self) -> Option<&'m str>
pub fn description(&self) -> Option<&'m str>
The description.
Sourcepub fn identification(&self) -> Option<&'m str>
pub fn identification(&self) -> Option<&'m str>
The user-facing identification code.
Sourcepub fn creation_date(&self) -> Option<&'m str>
pub fn creation_date(&self) -> Option<&'m str>
When it was created, as an authored ISO 8601 string.
Sourcepub fn start_time(&self) -> Option<&'m str>
pub fn start_time(&self) -> Option<&'m str>
The planned start, as authored. Required by the schema.
Sourcepub fn finish_time(&self) -> Option<&'m str>
pub fn finish_time(&self) -> Option<&'m str>
The planned finish, as authored.
Sourcepub fn duration(&self) -> Option<&'m str>
pub fn duration(&self) -> Option<&'m str>
The overall duration, as an authored ISO 8601 duration.
Sourcepub fn total_float(&self) -> Option<&'m str>
pub fn total_float(&self) -> Option<&'m str>
The total float, as an authored ISO 8601 duration.
Sourcepub fn predefined_type(&self) -> Option<&'m str>
pub fn predefined_type(&self) -> Option<&'m str>
The predefined type token, without its dots.
Trait Implementations§
Source§impl<'m> Clone for WorkControl<'m>
impl<'m> Clone for WorkControl<'m>
impl<'m> Copy for WorkControl<'m>
Auto Trait Implementations§
impl<'m> Freeze for WorkControl<'m>
impl<'m> RefUnwindSafe for WorkControl<'m>
impl<'m> Send for WorkControl<'m>
impl<'m> Sync for WorkControl<'m>
impl<'m> Unpin for WorkControl<'m>
impl<'m> UnsafeUnpin for WorkControl<'m>
impl<'m> UnwindSafe for WorkControl<'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