pub enum CallbackKind<'a> {
Section(&'a str),
Directive(Option<&'a str>, &'a str, Option<&'a str>),
}
Expand description
The kind of callback.
Variants§
Section(&'a str)
A new section has been declared. This variant contains the section name.
Directive(Option<&'a str>, &'a str, Option<&'a str>)
A new directive has been devlared. This variant contains:
- The current section (if any)
- The key of the directive
- The value of the directive (if any)
Auto Trait Implementations§
impl<'a> Freeze for CallbackKind<'a>
impl<'a> RefUnwindSafe for CallbackKind<'a>
impl<'a> Send for CallbackKind<'a>
impl<'a> Sync for CallbackKind<'a>
impl<'a> Unpin for CallbackKind<'a>
impl<'a> UnwindSafe for CallbackKind<'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