Enum audrey::Format
[−]
[src]
pub enum Format { Flac, OggVorbis, Wav, CafAlac, }
Enumerates the various formats supported by the crate.
Variants
Flac
OggVorbis
Wav
CafAlac
Methods
impl Format
[src]
fn from_extension(extension: &str) -> Option<Self>
Read a Format
from the given extension
.
This function expects that the extension
is lowercase ASCII, e.g "wav" or "ogg".
fn extension(&self) -> &'static str
Return the most commonly used file extension associated with the Format
.
Trait Implementations
impl Copy for Format
[src]
impl Clone for Format
[src]
fn clone(&self) -> Format
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Format
[src]
impl Hash for Format
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Format
[src]
fn eq(&self, __arg_0: &Format) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.