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]

[src]

The Path of the config file.

[src]

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

[src]

Looks up path in ENV

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

[src]

Returns whatever it finds in that position

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

[src]

Returns the first character.

Panics

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

[src]

Returns the string in the position or an empty string

[src]

Returns the string in the position or an empty string

[src]

Returns the string in the position or an empty string

[src]

Returns the a vec of &strs if possible

[src]

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.

[src]

Tries to get the config field as float

[src]

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]

[src]

Formats the value using the given formatter.