HitSound

Trait HitSound 

Source
pub trait HitSound {
    const HITSOUND_WHISTLE: u8 = 2u8;
    const HITSOUND_FINISH: u8 = 4u8;
    const HITSOUND_CLAP: u8 = 8u8;

    // Required methods
    fn normal(self) -> bool;
    fn whistle(self) -> bool;
    fn finish(self) -> bool;
    fn clap(self) -> bool;
}

Provided Associated Constants§

Required Methods§

Source

fn normal(self) -> bool

Source

fn whistle(self) -> bool

Source

fn finish(self) -> bool

Source

fn clap(self) -> bool

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.

Implementations on Foreign Types§

Source§

impl HitSound for u8

Source§

fn normal(self) -> bool

Source§

fn whistle(self) -> bool

Source§

fn finish(self) -> bool

Source§

fn clap(self) -> bool

Implementors§