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

pub struct Ini {
    pub default_key: String,
    // some fields omitted
}

Fields

default_key: String

Methods

impl<'a> Ini
[src]

fn new() -> Ini

fn begin_section(&'a mut self, section: &str) -> &'a mut Ini

fn end_section(&'a mut self) -> &'a mut Ini

fn general_section(&'a mut self) -> &'a mut Properties

fn section(&'a mut self, name: &str) -> &'a mut Properties

fn entry(&mut self, name: String) -> Entry<StringProperties>

fn clear(&'a mut self)

fn sections(&'a mut self) -> Keys<'a, StringProperties>

fn set(&'a mut self, key: &str, value: &str) -> &'a mut Ini

fn set_to(&'a mut self, section: &str, key: &str, value: &str) -> &'a mut Ini

fn get(&'a self, key: &str) -> Option<&'a str>

fn get_from(&'a self, section: &str, key: &str) -> Option<&'a str>

fn get_or(&'a self, key: &str, default: &'a str) -> &'a str

fn get_from_or(&'a self, section: &str, key: &str, default: &'a str) -> &'a str

fn get_mut(&'a mut self, key: &str) -> Option<&'a mut String>

fn get_from_mut(&'a mut self, section: &str, key: &str) -> Option<&'a mut String>

impl Ini
[src]

fn write_to_file(&self, filename: &str) -> Result<()>

fn write_to(&self, writer: &mut Write) -> Result<()>

impl Ini
[src]

fn load_from_str(buf: &str) -> Result<IniError>

fn read_from(reader: &mut Read) -> Result<IniError>

fn load_from_file(filename: &str) -> Result<IniError>

impl Ini
[src]

fn iter<'a>(&'a self) -> SectionIterator<'a>

fn mut_iter<'a>(&'a mut self) -> SectionMutIterator<'a>

Trait Implementations

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

type Output = Properties

The returned type after indexing

fn index<'a>(&'a self, index: &str) -> &'a Properties

The method for the indexing (Foo[Bar]) operation

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

fn index_mut<'a>(&'a mut self, index: &'q str) -> &'a mut Properties

The method for the indexing (Foo[Bar]) operation

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

type Output = Properties

The returned type after indexing

fn index<'a>(&'a self, index: &String) -> &'a Properties

The method for the indexing (Foo[Bar]) operation

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

fn index_mut<'a>(&'a mut self, index: &'q String) -> &'a mut Properties

The method for the indexing (Foo[Bar]) operation