Struct asciii::config::ConfigReader[][src]

pub struct ConfigReader {
    pub path: PathBuf,
    // some fields omitted
}

Looks for a configuration yaml in your HOME_DIR

Fields

Path of config file

Methods

impl ConfigReader
[src]

The Path of the config file.

Opens config from self.path() and parses Yaml right away.

Looks up path in ENV

Paths are translatet from top/middle/child/node to ASCIII_TOP_MIDDLE_CHILD_NODE

Returns whatever it finds in that position

Supports simple path syntax: top/middle/child/node

Returns the first character.

Panics

This panics if nothing is found. You should have a default config for everything that you use.

Returns the string in the position or an empty string

Returns the string in the position or an empty string

Returns the string in the position or an empty string

Returns the a vec of &strs if possible

Returns the string in the position or an empty string

Panics

This panics if nothing is found. You should have a default config for everything that you use.

Tries to get the config field as float

Returns the boolean in the position or false

Panics

This panics if nothing is found. You should have a default config for everything that you use.

Trait Implementations

impl Debug for ConfigReader
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations