Function dotfiles_core::yaml_util::parse_as_boolean
source · pub fn parse_as_boolean(yaml: &StrictYaml) -> Result<bool, DotfilesError>
Expand description
Parse a yaml element as boolean.
§Errors
- ErrorType::UnexpectedYamlTypeError if yaml is not of type Boolean