pub trait SpatialNodeContainer {
// Required method
fn get_node_info(&self, index: SpatialNodeIndex) -> SpatialNodeInfo<'_>;
// Provided method
fn get_snapping_info(
&self,
parent_index: Option<SpatialNodeIndex>,
) -> Option<ScaleOffset> { ... }
}Expand description
Allows functions and methods to retrieve common information about a spatial node, whether during scene or frame building
Required Methods§
Sourcefn get_node_info(&self, index: SpatialNodeIndex) -> SpatialNodeInfo<'_>
fn get_node_info(&self, index: SpatialNodeIndex) -> SpatialNodeInfo<'_>
Get the common information for a given spatial node
Provided Methods§
fn get_snapping_info( &self, parent_index: Option<SpatialNodeIndex>, ) -> Option<ScaleOffset>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".