pub struct IniFile<'a> { /* private fields */ }
Implementations§
Source§impl<'a> IniFile<'a>
impl<'a> IniFile<'a>
pub fn parse(content: &'a str) -> Self
pub fn get_section(&self, section: &str) -> Option<&Section<'_>>
pub fn get_value(&self, section: &str, key: &str) -> Option<&'a str>
pub fn sections(&self) -> &HashMap<&'a str, Section<'_>>
pub fn values(&'a self) -> impl Iterator<Item = &'a str> + 'a
Trait Implementations§
Source§impl<'a> IntoIterator for &'a IniFile<'a>
impl<'a> IntoIterator for &'a IniFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for IniFile<'a>
impl<'a> RefUnwindSafe for IniFile<'a>
impl<'a> Send for IniFile<'a>
impl<'a> Sync for IniFile<'a>
impl<'a> Unpin for IniFile<'a>
impl<'a> UnwindSafe for IniFile<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more