pub fn remove_from_path(path: impl AsRef<Path>) -> crate::Result<FormatVersion> {
    let v2 = Tag::remove_from_path(&path)?;
    let v1 = v1::Tag::remove_from_path(path)?;
    Ok(match (v1, v2) {
        (false, false) => FormatVersion::None,
        (true, false) => FormatVersion::Id3v1,
        (false, true) => FormatVersion::Id3v2,
        (true, true) => FormatVersion::Both,
    })
}
/// Ensures that both ID3v1 and ID3v2 are not present in the specified file.
///
/// Returns [`FormatVersion`] representing the previous state.
Ensures that both ID3v1 and ID3v2 are not present in the specified file.
Returns [`FormatVersion`] representing the previous state.
Ensures that both ID3v1 and ID3v2 are not present in the specified file . Returns [ ` FormatVersion ` ] representing the previous state .
pub fn remove_from_path(path: impl AsRef<Path>) -> crate::Result<FormatVersion> {
    let v2 = Tag::remove_from_path(&path)?;
    let v1 = v1::Tag::remove_from_path(path)?;
    Ok(match (v1, v2) {
        (false, false) => FormatVersion::None,
        (true, false) => FormatVersion::Id3v1,
        (false, true) => FormatVersion::Id3v2,
        (true, true) => FormatVersion::Both,
    })
}
pub fn remove_from_path ( path : impl AsRef < Path > ) -> crate :: Result < FormatVersion > { let v2 = Tag :: remove_from_path ( & path ) ? ; let v1 = v1 :: Tag :: remove_from_path ( path ) ? ; Ok ( match ( v1 , v2 ) { ( false , false ) => FormatVersion :: None , ( true , false ) => FormatVersion :: Id3v1 , ( false , true ) => FormatVersion :: Id3v2 , ( true , true ) => FormatVersion :: Both , } ) }
Ensures that both ID3v1 and ID3v2 are not present in the specified file.
Ensures that both ID3v1 and ID3v2 are not present in the specified file .
path
impl AsRef<Path>
path
impl AsRef<Path>