pub struct Callback<'a> {
pub filename: Option<&'a str>,
pub line: &'a str,
pub line_number: usize,
pub kind: CallbackKind<'a>,
}
Expand description
The callback implemnters of Ini receive for each line parsed.
Fields
filename: Option<&'a str>
The filename of the current ini file (if any)
line: &'a str
The current line that has been parsed
line_number: usize
The line number of the current line
kind: CallbackKind<'a>
The kind of line parsed
Auto Trait Implementations
impl<'a> RefUnwindSafe for Callback<'a>
impl<'a> Send for Callback<'a>
impl<'a> Sync for Callback<'a>
impl<'a> Unpin for Callback<'a>
impl<'a> UnwindSafe for Callback<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more