pub fn read_from_path(path: impl AsRef<Path>) -> crate::Result<Tag> {
    match Tag::read_from_path(&path) {
        Err(Error {
            kind: ErrorKind::NoTag,
            ..
        }) => {}
        Err(err) => return Err(err),
        Ok(tag) => return Ok(tag),
    }

    match v1::Tag::read_from_path(path) {
        Err(Error {
            kind: ErrorKind::NoTag,
            ..
        }) => {}
        Err(err) => return Err(err),
        Ok(tag) => return Ok(tag.into()),
    }

    Err(Error::new(
        ErrorKind::NoTag,
        "Neither a ID3v2 or ID3v1 tag was found",
    ))
}
/// Attempts to read an ID3v2 or ID3v1 tag, in that order.
///
/// If neither version tag is found, an error with [`ErrorKind::NoTag`] is returned.
Attempts to read an ID3v2 or ID3v1 tag, in that order.
If neither version tag is found, an error with [`ErrorKind::NoTag`] is returned.
Attempts to read an ID3v2 or ID3v1 tag in that order . If neither version tag is found an error with [ ` ErrorKind :: NoTag ` ] is returned .
pub fn read_from_path(path: impl AsRef<Path>) -> crate::Result<Tag> {
    match Tag::read_from_path(&path) {
        Err(Error {
            kind: ErrorKind::NoTag,
            ..
        }) => {}
        Err(err) => return Err(err),
        Ok(tag) => return Ok(tag),
    }
    match v1::Tag::read_from_path(path) {
        Err(Error {
            kind: ErrorKind::NoTag,
            ..
        }) => {}
        Err(err) => return Err(err),
        Ok(tag) => return Ok(tag.into()),
    }
    Err(Error::new(
        ErrorKind::NoTag,
        "Neither a ID3v2 or ID3v1 tag was found",
    ))
}
pub fn read_from_path ( path : impl AsRef < Path > ) -> crate :: Result < Tag > { match Tag :: read_from_path ( & path ) { Err ( Error { kind : ErrorKind :: NoTag , .. } ) => { } Err ( err ) => return Err ( err ) , Ok ( tag ) => return Ok ( tag ) , } match v1 :: Tag :: read_from_path ( path ) { Err ( Error { kind : ErrorKind :: NoTag , .. } ) => { } Err ( err ) => return Err ( err ) , Ok ( tag ) => return Ok ( tag . into ( ) ) , } Err ( Error :: new ( ErrorKind :: NoTag , " " , ) ) }
Attempts to read an ID3v2 or ID3v1 tag, in that order.
Attempts to read an ID3v2 or ID3v1 tag in that order .
path
impl AsRef<Path>
path
impl AsRef<Path>