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.