Function dotfiles_core::yaml_util::process_yaml_hash_until_first_err
source ยท pub fn process_yaml_hash_until_first_err<F>(
yaml_hash: &StrictYaml,
process_function: F
) -> Result<(), DotfilesError>
Expand description
Executes the process_function
on each of the items in the yaml_hash
. The yaml hash is
assumed to be string keyed. It stops execution if any of the process functions returns an Error,
and returns said error.