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