pub fn partial_tag_ok(rs: Result<Tag>) -> Result<Tag> {
    match rs {
        Ok(tag) => Ok(tag),
        Err(Error {
            partial_tag: Some(tag),
            ..
        }) => Ok(tag),
        Err(err) => Err(err),
    }
}
/// Takes a tag result and maps any partial tag to Ok. An Ok result is left untouched. An Err
/// without partial tag is returned as the initial error.
///
/// # Example
/// ```
/// use id3::{Tag, Error, ErrorKind, partial_tag_ok};
///
/// let rs = Err(Error{
///     kind: ErrorKind::Parsing,
///     description: "frame 12 could not be decoded".to_string(),
///     partial_tag: Some(Tag::new()),
/// });
/// assert!(partial_tag_ok(rs).is_ok());
/// ```
Takes a tag result and maps any partial tag to Ok. An Ok result is left untouched. An Err
without partial tag is returned as the initial error.
Takes a tag result and maps any partial tag to Ok . An Ok result is left untouched . An Err without partial tag is returned as the initial error .
pub fn partial_tag_ok(rs: Result<Tag>) -> Result<Tag> {
    match rs {
        Ok(tag) => Ok(tag),
        Err(Error {
            partial_tag: Some(tag),
            ..
        }) => Ok(tag),
        Err(err) => Err(err),
    }
}
pub fn partial_tag_ok ( rs : Result < Tag > ) -> Result < Tag > { match rs { Ok ( tag ) => Ok ( tag ) , Err ( Error { partial_tag : Some ( tag ) , .. } ) => Ok ( tag ) , Err ( err ) => Err ( err ) , } }
Takes a tag result and maps any partial tag to Ok. An Ok result is left untouched.
Takes a tag result and maps any partial tag to Ok . An Ok result is left untouched .
rs
Result<Tag>
rs
Result<Tag>
example
```
use id3::{Tag, Error, ErrorKind, partial_tag_ok}.

let rs = Err(Error{
kind: ErrorKind::Parsing,
description: "frame 12 could not be decoded".to_string(),
partial_tag: Some(Tag::new()),
});
assert!(partial_tag_ok(rs).is_ok());
```
` ` ` use id3 :: { Tag Error ErrorKind partial_tag_ok } . let rs = Err ( Error { kind : ErrorKind :: Parsing description : " frame 12 could not be decoded " . to_string () partial_tag : Some ( Tag :: new () ) } ) ; assert! ( partial_tag_ok ( rs ) . is_ok () ) ; ` ` `