#[repr(u32)]pub enum SoundType {
Show 25 variants
Unknown = 0,
AIFF = 1,
ASF = 2,
DLS = 3,
FLAC = 4,
FSB = 5,
IT = 6,
MIDI = 7,
MOD = 8,
MPEG = 9,
OGGVORBIS = 10,
Playlist = 11,
RAW = 12,
S3M = 13,
User = 14,
WAV = 15,
XM = 16,
XMA = 17,
AudioQueue = 18,
AT9 = 19,
Vorbis = 20,
MediaFoundation = 21,
MediaCodec = 22,
FADPCM = 23,
OPUS = 24,
}Variants§
Unknown = 0
AIFF = 1
ASF = 2
DLS = 3
FLAC = 4
FSB = 5
IT = 6
MIDI = 7
MOD = 8
MPEG = 9
OGGVORBIS = 10
Playlist = 11
RAW = 12
S3M = 13
User = 14
WAV = 15
XM = 16
XMA = 17
AudioQueue = 18
AT9 = 19
Vorbis = 20
MediaFoundation = 21
MediaCodec = 22
FADPCM = 23
OPUS = 24
Trait Implementations§
source§impl PartialEq for SoundType
impl PartialEq for SoundType
source§impl TryFrom<u32> for SoundType
impl TryFrom<u32> for SoundType
§type Error = TryFromPrimitiveError<SoundType>
type Error = TryFromPrimitiveError<SoundType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for SoundType
impl TryFromPrimitive for SoundType
source§impl UnsafeFromPrimitive for SoundType
impl UnsafeFromPrimitive for SoundType
type Primitive = u32
source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from, from_unchecked will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for SoundType
impl Eq for SoundType
impl StructuralPartialEq for SoundType
Auto Trait Implementations§
impl Freeze for SoundType
impl RefUnwindSafe for SoundType
impl Send for SoundType
impl Sync for SoundType
impl Unpin for SoundType
impl UnwindSafe for SoundType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more