pub enum Item<'a> {
Section {
line: usize,
name: &'a str,
},
Key {
line: usize,
sec: &'a str,
key: &'a str,
value: &'a str,
},
Bad {
line: usize,
text: &'a [u8],
},
}Expand description
a line of the file as Ini::items lists it (line numbers from 1)
Variants§
Section
a “[name]” header
Key
“key = value” of section sec (“” before the first header)
Bad
neither blank, a comment, a header nor a key (or not UTF-8)
Trait Implementations§
impl<'a> Copy for Item<'a>
impl<'a> Eq for Item<'a>
impl<'a> StructuralPartialEq for Item<'a>
Auto Trait Implementations§
impl<'a> Forget for Item<'a>
impl<'a> Freeze for Item<'a>
impl<'a> RefUnwindSafe for Item<'a>
impl<'a> Send for Item<'a>
impl<'a> Sync for Item<'a>
impl<'a> Unpin for Item<'a>
impl<'a> UnsafeUnpin for Item<'a>
impl<'a> UnwindSafe for Item<'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