/// Try to construct a vec of `Annotation`s from each key/value pair in the HashMap
Try to construct a vec of `Annotation`s from each key/value pair in the HashMap
Try to construct a vec of ` Annotation ` s from each key / value pair in the HashMap
fn annotations_to_vec(
    annotations: &HashMap<Key, felement::AnnotationValue>,
) -> Result<Vec<felement::Annotation>, BufferIOError> {
    let mut result = vec![];
    for (key, value) in annotations {
        let annotation =
            felement::Annotation { key: key.as_fidl_key(), value: clone_annotation_value(value)? };
        result.push(annotation);
    }
    Ok(result)
}
fn annotations_to_vec ( annotations : & HashMap < Key , felement :: AnnotationValue > , ) -> Result < Vec < felement :: Annotation > , BufferIOError > { let mut result = vec ! [ ] ; for ( key , value ) in annotations { let annotation = felement :: Annotation { key : key . as_fidl_key ( ) , value : clone_annotation_value ( value ) ? } ; result . push ( annotation ) ; } Ok ( result ) }
Try to construct a vec of `Annotation`s from each key/value pair in the HashMap
Try to construct a vec of ` Annotation ` s from each key / value pair in the HashMap
annotations
&HashMap<Key, felement::AnnotationValue>