#[non_exhaustive]pub enum AudioFormat {
Aac,
Opus,
Flac,
Mp3,
}Expand description
A single audio codec an importer can parse.
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.
Aac
Advanced Audio Coding, configured by an AudioSpecificConfig.
Opus
Opus, configured by an OpusHead.
Flac
FLAC, configured by the fLaC marker plus its STREAMINFO block.
Mp3
MPEG-1/2 Audio Layer III.
Implementations§
Source§impl AudioFormat
impl AudioFormat
Sourcepub fn track_suffix(self) -> &'static str
pub fn track_suffix(self) -> &'static str
The suffix of a track named after this format, such as .opus in 0.opus.
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
impl Copy for AudioFormat
Source§impl Debug for AudioFormat
impl Debug for AudioFormat
Source§impl Display for AudioFormat
impl Display for AudioFormat
impl Eq for AudioFormat
Source§impl FromStr for AudioFormat
impl FromStr for AudioFormat
Source§impl Hash for AudioFormat
impl Hash for AudioFormat
Source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnsafeUnpin for AudioFormat
impl UnwindSafe for AudioFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.