[][src]Trait stdbench::config::YamlExt

pub trait YamlExt {
    fn require_string(&self, field: &str) -> Result<&str, Error>;
}

Extension for yaml_rust::Yaml object providing useful methods.

Required methods

fn require_string(&self, field: &str) -> Result<&str, Error>

Returns string slice to the value of a field if it is a string, or an error otherwise.

Loading content...

Implementations on Foreign Types

impl YamlExt for Yaml[src]

Loading content...

Implementors

Loading content...