pub trait EntityReference: Component + 'static {
// Required method
fn iter_entities(&self) -> impl Iterator<Item = Entity>;
}Expand description
A component that references other entities, like Children.
Required Methods§
fn iter_entities(&self) -> impl Iterator<Item = Entity>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.