pub fn remove_from_file(mut file: &mut fs::File) -> crate::Result<bool> {
        let location = match stream::tag::locate_id3v2(&mut file)? {
            Some(l) => l,
            None => return Ok(false),
        };
        // Open the ID3 region for writing and write nothing. This removes the region in its
        // entirety.
        let mut storage = PlainStorage::new(file, location);
        storage.writer()?.flush()?;
        Ok(true)
    }
/// Removes an ID3v2 tag from the specified file.
///
/// Returns true if the file initially contained a tag.
Removes an ID3v2 tag from the specified file.
Returns true if the file initially contained a tag.
Removes an ID3v2 tag from the specified file . Returns true if the file initially contained a tag .
pub fn remove_from_file(mut file: &mut fs::File) -> crate::Result<bool> {
        let location = match stream::tag::locate_id3v2(&mut file)? {
            Some(l) => l,
            None => return Ok(false),
        };
        // Open the ID3 region for writing and write nothing. This removes the region in its
        // entirety.
        let mut storage = PlainStorage::new(file, location);
        storage.writer()?.flush()?;
        Ok(true)
    }
pub fn remove_from_file ( mut file : & mut fs :: File ) -> crate :: Result < bool > { let location = match stream :: tag :: locate_id3v2 ( & mut file ) ? { Some ( l ) => l , None => return Ok ( false ) , } ; // Open the ID3 region for writing and write nothing. This removes the region in its // entirety. let mut storage = PlainStorage :: new ( file , location ) ; storage . writer ( ) ? . flush ( ) ? ; Ok ( true ) }
Removes an ID3v2 tag from the specified file.
Removes an ID3v2 tag from the specified file .
file
&mut fs::File
file
&mut fs::File