Function dotfiles_core::yaml_util::parse_as_string
source · pub fn parse_as_string(
yaml_to_parse: &StrictYaml
) -> Result<String, DotfilesError>
Expand description
Parse a yaml element as string, will convert booleans and integers to string if necessary.
§Errors
- ErrorType::UnexpectedYamlTypeError if yaml is neither string, boolean or integer and thus cannot be parsed as string losslessly.