swamp_advanced_game

Trait ApplicationAudio

Source
pub trait ApplicationAudio<L: ApplicationLogic>: Sized + 'static {
    // Required method
    fn new(assets: &mut impl Assets) -> Self;

    // Provided method
    fn audio(&mut self, _audio: &mut impl Audio, _logic: &L) { ... }
}

Required Methods§

Source

fn new(assets: &mut impl Assets) -> Self

Provided Methods§

Source

fn audio(&mut self, _audio: &mut impl Audio, _logic: &L)

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§