fn clone_annotation_vec(
    annotations: &Vec<felement::Annotation>,
) -> Result<Vec<felement::Annotation>, felement::WatchAnnotationsError> {
    let mut result = vec![];
    for felement::Annotation { key, value } in annotations {
        result.push(felement::Annotation {
            key: key.clone(),
            value: clone_annotation_value(&value).map_err(|e| e.into())?,
        });
    }
    Ok(result)
}
/// Helper for `AnnotationHolder::watch_annotations`, if you want to use it for something else,
/// verify that the error return types are suitable.
Helper for `AnnotationHolder::watch_annotations`, if you want to use it for something else,
verify that the error return types are suitable.
Helper for ` AnnotationHolder :: watch_annotations ` if you want to use it for something else verify that the error return types are suitable .
fn clone_annotation_vec(
    annotations: &Vec<felement::Annotation>,
) -> Result<Vec<felement::Annotation>, felement::WatchAnnotationsError> {
    let mut result = vec![];
    for felement::Annotation { key, value } in annotations {
        result.push(felement::Annotation {
            key: key.clone(),
            value: clone_annotation_value(&value).map_err(|e| e.into())?,
        });
    }
    Ok(result)
}
fn clone_annotation_vec ( annotations : & Vec < felement :: Annotation > , ) -> Result < Vec < felement :: Annotation > , felement :: WatchAnnotationsError > { let mut result = vec ! [ ] ; for felement :: Annotation { key , value } in annotations { result . push ( felement :: Annotation { key : key . clone ( ) , value : clone_annotation_value ( & value ) . map_err ( | e | e . into ( ) ) ? , } ) ; } Ok ( result ) }
Helper for `AnnotationHolder::watch_annotations`, if you want to use it for something else,
verify that the error return types are suitable.
Helper for ` AnnotationHolder :: watch_annotations ` if you want to use it for something else verify that the error return types are suitable .
annotations
&Vec<felement::Annotation>
annotations
&Vec<felement::Annotation>