Skip to main content

ProjectileEventSource

Trait ProjectileEventSource 

Source
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§

Source

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".

Implementors§