Struct micro_kit::config::ConfigFile
[−]
[src]
pub struct ConfigFile { /* fields omitted */ }Wrapper for a parsed configuration. Should wrap the Yaml better to make the API easier to use.
Methods
impl ConfigFile[src]
fn open<'a>(name: Cow<'a, str>) -> Result<Self, ConfigError>
Open a yaml file as a config file.
Trait Implementations
impl Debug for ConfigFile[src]
impl Clone for ConfigFile[src]
fn clone(&self) -> ConfigFile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> Index<&'a str> for ConfigFile[src]
Allow a ConfigFile to be accessed like a map
type Output = Yaml
The returned type after indexing
fn index(&self, idx: &'a str) -> &Yaml
The method for the indexing (container[index]) operation
impl Index<usize> for ConfigFile[src]
Allow a ConfigFile to be accessed like an array.