Struct ini::ini::Ini [] [src]

pub struct Ini { /* fields omitted */ }

Ini struct

Methods

impl Ini
[src]

[src]

Create an instance

[src]

Set with a specified section, None is for the general section

[src]

Get the immmutable general section

[src]

Get the mutable general section

[src]

Get a immutable section

[src]

Get a mutable section

[src]

Get the entry

[src]

Clear all entries

[src]

Iterate with sections

[src]

Set key-value to a section

[src]

Get the value from a section with key

Example:

use ini::Ini;
let input = "[sec]\nabc = def\n";
let ini = Ini::load_from_str(input).unwrap();
assert_eq!(ini.get_from(Some("sec"), "abc"), Some("def"));

[src]

Get the value from a section with key, return the default value if it does not exist

Example:

use ini::Ini;
let input = "[sec]\n";
let ini = Ini::load_from_str(input).unwrap();
assert_eq!(ini.get_from_or(Some("sec"), "key", "default"), "default");

[src]

Get the mutable from a section with key

[src]

Delete a section, return the properties if it exists

[src]

impl Ini
[src]

[src]

Write to a file

[src]

Write to a file

[src]

Write to a writer

[src]

Write to a writer

impl Ini
[src]

[src]

Load from a string

[src]

Load from a string, but do not interpret '' as an escape character

[src]

Load from a string with options

[src]

Load from a reader

[src]

Load from a reader, but do not interpret '' as an escape character

[src]

Load from a reader with options

[src]

Load from a file

[src]

Load from a file, but do not interpret '' as an escape character

[src]

Load from a file with options

impl<'a> Ini
[src]

Important traits for SectionIterator<'a>
[src]

Immutable iterate though sections

Important traits for SectionMutIterator<'a>
[src]

Mutable iterate though sections Deprecated! Use iter_mut instead!

Important traits for SectionMutIterator<'a>
[src]

Mutable iterate though sections

Trait Implementations

impl Clone for Ini
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'q> Index<&'q Option<String>> for Ini
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<'i> IndexMut<&'i Option<String>> for Ini
[src]

[src]

Performs the mutable indexing (container[index]) operation.

impl<'q> Index<&'q str> for Ini
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<'q> IndexMut<&'q str> for Ini
[src]

[src]

Performs the mutable indexing (container[index]) operation.

impl<'a> IntoIterator for &'a Ini
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for SectionIterator<'a>
[src]

Creates an iterator from a value. Read more

impl<'a> IntoIterator for &'a mut Ini
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for SectionMutIterator<'a>
[src]

Creates an iterator from a value. Read more

impl IntoIterator for Ini
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for SectionIntoIter
[src]

Creates an iterator from a value. Read more

Auto Trait Implementations

impl Send for Ini

impl Sync for Ini