pub trait EntityEventSource {
// Required method
fn as_entity_event_source(&self) -> &dyn Entity;
}Expand description
Object-safe access to an entity trait object from default Entity methods.
Required Methods§
Sourcefn as_entity_event_source(&self) -> &dyn Entity
fn as_entity_event_source(&self) -> &dyn Entity
Returns this entity as a game-event source.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".