pub struct SpatialNode {
pub id: EntityId,
pub kind: SpatialKind,
pub parent: Option<EntityId>,
pub children: Vec<EntityId>,
pub elements: Vec<EntityId>,
}Expand description
One entity’s place in the containment tree.
Fields§
§id: EntityIdThe entity this node describes.
kind: SpatialKindIts spatial role.
parent: Option<EntityId>Its container, if any relationship names one.
children: Vec<EntityId>Sub-containers, in file order.
elements: Vec<EntityId>Physical elements placed directly in this container, in file order.
Trait Implementations§
Source§impl Clone for SpatialNode
impl Clone for SpatialNode
Source§impl Debug for SpatialNode
impl Debug for SpatialNode
impl Eq for SpatialNode
Source§impl PartialEq for SpatialNode
impl PartialEq for SpatialNode
impl StructuralPartialEq for SpatialNode
Auto Trait Implementations§
impl Freeze for SpatialNode
impl RefUnwindSafe for SpatialNode
impl Send for SpatialNode
impl Sync for SpatialNode
impl Unpin for SpatialNode
impl UnsafeUnpin for SpatialNode
impl UnwindSafe for SpatialNode
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