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