pub struct Document<'m> { /* private fields */ }Expand description
A document referenced by a part — a drawing, specification, or standard.
Unifies STEP’s DOCUMENT and DOCUMENT_FILE, which share id / name /
description / kind (the file-specific fields of DOCUMENT_FILE are out of
scope for now).
Implementations§
Source§impl<'m> Document<'m>
impl<'m> Document<'m>
Sourcepub fn assigned_scope(&self) -> Scope
pub fn assigned_scope(&self) -> Scope
Which level of the product structure this document reference attaches to.
Sourcepub fn assigned_targets(&self) -> Vec<Target<'m>>
pub fn assigned_targets(&self) -> Vec<Target<'m>>
The exact product-structure entities this document is referenced from
(across every APPLIED_DOCUMENT_REFERENCE that carries it).
Sourcepub fn description(&self) -> Option<&'m str>
pub fn description(&self) -> Option<&'m str>
The document description, if any.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Document<'m>
impl<'m> RefUnwindSafe for Document<'m>
impl<'m> Send for Document<'m>
impl<'m> Sync for Document<'m>
impl<'m> Unpin for Document<'m>
impl<'m> UnsafeUnpin for Document<'m>
impl<'m> UnwindSafe for Document<'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