Trait sdl2::audio::AudioFormatNum
source · pub trait AudioFormatNum {
// Required methods
fn audio_format() -> AudioFormat;
fn zero() -> Self;
}
Expand description
A phantom type for retrieving the SDL_AudioFormat
of a given generic type.
All format types are returned as native-endian.
Required Methods§
fn audio_format() -> AudioFormat
fn zero() -> Self
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl AudioFormatNum for f32
impl AudioFormatNum for f32
AUDIO_F32
fn audio_format() -> AudioFormat
fn zero() -> f32
source§impl AudioFormatNum for i8
impl AudioFormatNum for i8
AUDIO_S8
fn audio_format() -> AudioFormat
fn zero() -> i8
source§impl AudioFormatNum for i16
impl AudioFormatNum for i16
AUDIO_S16
fn audio_format() -> AudioFormat
fn zero() -> i16
source§impl AudioFormatNum for i32
impl AudioFormatNum for i32
AUDIO_S32
fn audio_format() -> AudioFormat
fn zero() -> i32
source§impl AudioFormatNum for u8
impl AudioFormatNum for u8
AUDIO_U8
fn audio_format() -> AudioFormat
fn zero() -> u8
source§impl AudioFormatNum for u16
impl AudioFormatNum for u16
AUDIO_U16