Struct taglib::File
[−]
[src]
pub struct File {
// some fields omitted
}A representation of an audio file, with meta-data and properties.
Methods
impl File
fn new(filename: &str) -> Result<File, FileError>
Creates a new taglib::File for the given filename.
fn new_type(filename: &str, filetype: FileType) -> Result<File, FileError>
Creates a new taglib::File for the given filename and type of file.
fn tag(&self) -> Result<Tag, FileError>
Returns the taglib::Tag instance for the given file.
fn is_valid(&self) -> bool
Returns whether the file is valid.
fn audioproperties(&self) -> Result<AudioProperties, FileError>
Returns the taglib::AudioProperties instance for the given file.
fn save(&self) -> bool
Updates the meta-data of the file.