#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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