/// Reads and parses a `MetaTagAtom` from the provided iterator and adds it to the `MetadataBuilder`
/// if there are no errors.
Reads and parses a `MetaTagAtom` from the provided iterator and adds it to the `MetadataBuilder`
if there are no errors.
Reads and parses a ` MetaTagAtom ` from the provided iterator and adds it to the ` MetadataBuilder ` if there are no errors .
fn add_generic_tag<B: ByteStream>(
    iter: &mut AtomIterator<B>,
    builder: &mut MetadataBuilder,
    std_key: Option<StandardTagKey>,
) -> Result<()> {
    let tag = iter.read_atom::<MetaTagAtom>()?;
    for value_atom in tag.values.iter() {
        // Parse the value atom data into a string, if possible.
        if let Some(value) = parse_tag_value(value_atom.data_type, &value_atom.data) {
            builder.add_tag(Tag::new(std_key, "", value));
        }
        else {
            warn!("unsupported data type {:?} for {:?} tag", value_atom.data_type, std_key);
        }
    }
    Ok(())
}
fn add_generic_tag < B : ByteStream > ( iter : & mut AtomIterator < B > , builder : & mut MetadataBuilder , std_key : Option < StandardTagKey > , ) -> Result < ( ) > { let tag = iter . read_atom :: < MetaTagAtom > ( ) ? ; for value_atom in tag . values . iter ( ) { // Parse the value atom data into a string, if possible. if let Some ( value ) = parse_tag_value ( value_atom . data_type , & value_atom . data ) { builder . add_tag ( Tag :: new ( std_key , " " , value ) ) ; } else { warn ! ( " " value_atom data_type std_key ) ; } } Ok ( ( ) ) }
Reads and parses a `MetaTagAtom` from the provided iterator and adds it to the `MetadataBuilder`
if there are no errors.
Reads and parses a ` MetaTagAtom ` from the provided iterator and adds it to the ` MetadataBuilder ` if there are no errors .
iter
&mut AtomIterator<B>
builder
&mut MetadataBuilder
std_key
Option<StandardTagKey>