pub trait AudioFile: Into<TaggedFile> {
type Properties;
fn read_from<R>(reader: &mut R, parse_options: ParseOptions) -> Result<Self>
where
R: Read + Seek,
Self: Sized;
fn properties(&self) -> &Self::Properties;
fn contains_tag(&self) -> bool;
fn contains_tag_type(&self, tag_type: TagType) -> bool;
}Expand description
Provides various methods for interaction with a file
Required Associated Types
sourcetype Properties
type Properties
The struct the file uses for audio properties
Not all formats can use FileProperties since they may contain additional information
Required Methods
sourcefn read_from<R>(reader: &mut R, parse_options: ParseOptions) -> Result<Self>where
R: Read + Seek,
Self: Sized,
fn read_from<R>(reader: &mut R, parse_options: ParseOptions) -> Result<Self>where
R: Read + Seek,
Self: Sized,
sourcefn properties(&self) -> &Self::Properties
fn properties(&self) -> &Self::Properties
Returns a reference to the file’s properties
sourcefn contains_tag(&self) -> bool
fn contains_tag(&self) -> bool
Checks if the file contains any tags
sourcefn contains_tag_type(&self, tag_type: TagType) -> bool
fn contains_tag_type(&self, tag_type: TagType) -> bool
Checks if the file contains the given TagType