[][src]Crate nbconf

Example:

let conf = nbconf::Conf::parse_str("
    [Section 1]
    hello = world

    [Section 2]
    nice to = meet you").expect("failed to parse config");

assert_eq!(conf.sections[0].name, "Section 1");
assert_eq!(conf.sections[0].entries[0].key, "hello");
assert_eq!(conf.sections[0].entries[0].value, "world");

assert_eq!(conf.sections[1].name, "Section 2");
assert_eq!(conf.sections[1].entries[0].key, "nice to");
assert_eq!(conf.sections[1].entries[0].value, "meet you");

Structs

Conf

A collection of config sections.

Entry

A single entry within the section.

ParseError

Error produced from Conf::parse_str.

Section

A named section within the config.

Enums

ParseErrorKind

The specific type of parse error.