#[non_exhaustive]pub enum MusicType {
Command,
Wave,
Mod,
Midi,
Ogg,
Mp3,
Flac,
Opus,
Unknown,
}
Expand description
A type of audio format supported by [MixMusic
].
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Command
A player from the command specified by [MixMusic::with_cmd
].
Wave
A wave format.
Mod
A mod format.
Midi
A midi format.
Ogg
A ogg vorbis format.
Mp3
A mpeg-1 audio layer-3 format.
Flac
A flac format.
Opus
A opus format.
Unknown
An unknown format.
Trait Implementations§
source§impl PartialEq for MusicType
impl PartialEq for MusicType
impl Copy for MusicType
impl Eq for MusicType
impl StructuralPartialEq for MusicType
Auto Trait Implementations§
impl RefUnwindSafe for MusicType
impl Send for MusicType
impl Sync for MusicType
impl Unpin for MusicType
impl UnwindSafe for MusicType
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