(dict: &'a Yaml, key: &'a str)
| 175 | // } |
| 176 | |
| 177 | fn find_str<'a>(dict: &'a Yaml, key: &'a str) -> Option<&'a str> { |
| 178 | return dict[key].as_str(); |
| 179 | } |
| 180 | |
| 181 | /// Returns the Yaml as a `Hash` or an error if it isn't. |
| 182 | pub fn as_hash_checked(value: &Yaml) -> Result<&Hash> { |