pub struct SpatialNodeInfo<'a> {
    pub node_type: &'a SpatialNodeType,
    pub parent: Option<SpatialNodeIndex>,
    pub snapping_transform: Option<ScaleOffset>,
}Expand description
Information about a spatial node that can be queried during either scene of frame building.
Fields§
§node_type: &'a SpatialNodeTypeThe type of this node and any data associated with that node type.
parent: Option<SpatialNodeIndex>Parent spatial node. If this is None, we are the root node.
snapping_transform: Option<ScaleOffset>Snapping scale/offset relative to the coordinate system. If None, then we should not snap entities bound to this spatial node.
Auto Trait Implementations§
impl<'a> Freeze for SpatialNodeInfo<'a>
impl<'a> RefUnwindSafe for SpatialNodeInfo<'a>
impl<'a> Send for SpatialNodeInfo<'a>
impl<'a> Sync for SpatialNodeInfo<'a>
impl<'a> Unpin for SpatialNodeInfo<'a>
impl<'a> UnwindSafe for SpatialNodeInfo<'a>
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more