Struct fermium::audio::SDL_AudioFormat
source · #[repr(transparent)]pub struct SDL_AudioFormat(pub u16);
Expand description
Audio format flags.
Use the appropriate const functions to query the bits.
++-----------------------sample is signed if set
||
|| ++----------sample is big-endian if set
|| ||
|| || ++---sample is float if set
|| || ||
|| || || +---sample bit size---+
|| || || | |
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
(Unspecified bits are always zero.)
Tuple Fields§
§0: u16
Trait Implementations§
source§impl Clone for SDL_AudioFormat
impl Clone for SDL_AudioFormat
source§fn clone(&self) -> SDL_AudioFormat
fn clone(&self) -> SDL_AudioFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SDL_AudioFormat
impl Debug for SDL_AudioFormat
source§impl Default for SDL_AudioFormat
impl Default for SDL_AudioFormat
source§fn default() -> SDL_AudioFormat
fn default() -> SDL_AudioFormat
Returns the “default value” for a type. Read more
source§impl Hash for SDL_AudioFormat
impl Hash for SDL_AudioFormat
source§impl Ord for SDL_AudioFormat
impl Ord for SDL_AudioFormat
source§fn cmp(&self, other: &SDL_AudioFormat) -> Ordering
fn cmp(&self, other: &SDL_AudioFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SDL_AudioFormat> for SDL_AudioFormat
impl PartialEq<SDL_AudioFormat> for SDL_AudioFormat
source§fn eq(&self, other: &SDL_AudioFormat) -> bool
fn eq(&self, other: &SDL_AudioFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_AudioFormat> for SDL_AudioFormat
impl PartialOrd<SDL_AudioFormat> for SDL_AudioFormat
source§fn partial_cmp(&self, other: &SDL_AudioFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_AudioFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more