spitfire_draw::particles

Trait ParticleSystemProcessor

Source
pub trait ParticleSystemProcessor<D, C> {
    // Required methods
    fn process(config: &C, data: D) -> Option<D>;
    fn emit(config: &C, data: &D) -> Option<ParticleInstance>;
}

Required Methods§

Source

fn process(config: &C, data: D) -> Option<D>

Source

fn emit(config: &C, data: &D) -> Option<ParticleInstance>

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.

Implementors§