Struct tini::Section[][src]

pub struct Section { /* fields omitted */ }

Implementations

Get scalar value of key

  • output type T must implement FromStr trait for auto conversion
Example
let conf = Ini::from_string("[section]\nkey=1\nvalue=2").unwrap();

for (name, section) in conf.iter() {
    let key = section.get("key");
    let value = section.get("value");
    assert_eq!(key, Some(1));
    assert_eq!(value, Some(2));
}

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.