pub struct Occurrence<'m> { /* private fields */ }Expand description
A component usage in an assembly (NEXT_ASSEMBLY_USAGE_OCCURRENCE): the
child definition plus where it is placed.
Implementations§
Source§impl<'m> Occurrence<'m>
impl<'m> Occurrence<'m>
Sourcepub fn key(&self) -> EntityKey
pub fn key(&self) -> EntityKey
This occurrence’s global identity (a Copy key for maps / deduplication).
Sourcepub fn definition(&self) -> Option<ProductDef<'m>>
pub fn definition(&self) -> Option<ProductDef<'m>>
The component definition this occurrence places (forward: related).
Sourcepub fn transform(&self) -> Option<Transform>
pub fn transform(&self) -> Option<Transform>
The component’s placement transform in the assembly, if present (reverse:
a PRODUCT_DEFINITION_SHAPE defined by this NAUO → a
CONTEXT_DEPENDENT_SHAPE_REPRESENTATION → its transformation operator’s
two AXIS2_PLACEMENT_3D frames). A transform item that is not an
AXIS2_PLACEMENT_3D is reported via Scene::warnings
and yields None rather than a silently wrong frame.
Trait Implementations§
Source§impl<'m> Clone for Occurrence<'m>
impl<'m> Clone for Occurrence<'m>
Source§fn clone(&self) -> Occurrence<'m>
fn clone(&self) -> Occurrence<'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 Occurrence<'m>
Auto Trait Implementations§
impl<'m> Freeze for Occurrence<'m>
impl<'m> RefUnwindSafe for Occurrence<'m>
impl<'m> Send for Occurrence<'m>
impl<'m> Sync for Occurrence<'m>
impl<'m> Unpin for Occurrence<'m>
impl<'m> UnsafeUnpin for Occurrence<'m>
impl<'m> UnwindSafe for Occurrence<'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