pub enum Line<'a> {
Header {
level: usize,
},
Content(&'a str),
}Expand description
The classification of a single line by a Parser.
Variants§
Header
The line was a header at the given level (0 for #).
The current path of headers is available through Parser::path.
Content(&'a str)
The line was not a header. It is passed through unchanged.
Auto Trait Implementations§
impl<'a> Freeze for Line<'a>
impl<'a> RefUnwindSafe for Line<'a>
impl<'a> Send for Line<'a>
impl<'a> Sync for Line<'a>
impl<'a> Unpin for Line<'a>
impl<'a> UnsafeUnpin for Line<'a>
impl<'a> UnwindSafe for Line<'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