#[non_exhaustive]pub enum MpegVersion {
Mpeg1,
Mpeg2,
Mpeg25,
}Expand description
MPEG audio version (2-bit ID field combined with the layer’s version bit).
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.
Mpeg1
MPEG Version 1 (44100/48000/32000 Hz family).
Mpeg2
MPEG Version 2 (22050/24000/16000 Hz family).
Mpeg25
MPEG Version 2.5 (11025/12000/8000 Hz family, unofficial low-rate extension).
Trait Implementations§
Source§impl Clone for MpegVersion
impl Clone for MpegVersion
Source§fn clone(&self) -> MpegVersion
fn clone(&self) -> MpegVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MpegVersion
Source§impl Debug for MpegVersion
impl Debug for MpegVersion
impl Eq for MpegVersion
Source§impl PartialEq for MpegVersion
impl PartialEq for MpegVersion
impl StructuralPartialEq for MpegVersion
Auto Trait Implementations§
impl Freeze for MpegVersion
impl RefUnwindSafe for MpegVersion
impl Send for MpegVersion
impl Sync for MpegVersion
impl Unpin for MpegVersion
impl UnsafeUnpin for MpegVersion
impl UnwindSafe for MpegVersion
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