fn add_additional_address_rrsets(
    name: &Name,
    rrsets: &RrsetList,
    response: &mut Writer,
) -> writer::Result<()> {
    for rrset in rrsets.iter() {
        if rrset.rr_type == Type::A || rrset.rr_type == Type::AAAA {
            response.add_additional_rrset(name, rrset)?;
        }
    }
    Ok(())
}
/// A helper that adds A and AAAA RRsets in `rrsets` to the additional
/// section of `response`. On error (including truncation), note that some
/// addresses may have been successfully written.
A helper that adds A and AAAA RRsets in `rrsets` to the additional
section of `response`. On error (including truncation), note that some
addresses may have been successfully written.
A helper that adds A and AAAA RRsets in ` rrsets ` to the additional section of ` response ` . On error ( including truncation ) note that some addresses may have been successfully written .
fn add_additional_address_rrsets(
    name: &Name,
    rrsets: &RrsetList,
    response: &mut Writer,
) -> writer::Result<()> {
    for rrset in rrsets.iter() {
        if rrset.rr_type == Type::A || rrset.rr_type == Type::AAAA {
            response.add_additional_rrset(name, rrset)?;
        }
    }
    Ok(())
}
fn add_additional_address_rrsets ( name : & Name , rrsets : & RrsetList , response : & mut Writer , ) -> writer :: Result < ( ) > { for rrset in rrsets . iter ( ) { if rrset . rr_type == Type :: A || rrset . rr_type == Type :: AAAA { response . add_additional_rrset ( name , rrset ) ? ; } } Ok ( ( ) ) }
A helper that adds A and AAAA RRsets in `rrsets` to the additional
section of `response`.
A helper that adds A and AAAA RRsets in ` rrsets ` to the additional section of ` response ` .
name
&Name
rrsets
&RrsetList
response
&mut Writer
name
&Name
rrsets
&RrsetList
response
&mut Writer