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