pub fn map_yaml_array<T, F>(
yaml_array: &StrictYaml,
process: F,
) -> Result<Vec<T>, DotfilesError>
Expand description
Calls a processing function on all elements of an array, will fail if any of the elements fail to process.
ยงErrors
- Any error that happens in the processing function.
- ErrorType::UnexpectedYamlTypeError if the yaml passed is not an array