IniHandler

Trait IniHandler 

Source
pub trait IniHandler {
    type Error: Debug;

    // Required methods
    fn section(&mut self, name: &str) -> Result<(), Self::Error>;
    fn option(&mut self, key: &str, value: &str) -> Result<(), Self::Error>;

    // Provided method
    fn comment(&mut self, _: &str) -> Result<(), Self::Error> { ... }
}
Expand description

Interface for the INI format handler

Required Associated Types§

Required Methods§

Source

fn section(&mut self, name: &str) -> Result<(), Self::Error>

Called when a section is found

Source

fn option(&mut self, key: &str, value: &str) -> Result<(), Self::Error>

Called when an option is found

Provided Methods§

Source

fn comment(&mut self, _: &str) -> Result<(), Self::Error>

Called for each comment

Implementors§