pub struct LineInfo {
pub class: &'static str,
pub label_end: usize,
pub keyword: String,
pub kind: String,
}Expand description
A line’s class: front-matter, backmatter, code, comment, heading, directive, alert, keyword, reason, data (a structured body), literal (a body quoted as written) or prose.
Fields§
§class: &'static str§label_end: usizeOn keyword and reason lines: the byte offset where the label (- **MUST[id] (if …):**, BECAUSE:) ends.
keyword: StringOn keyword and alert lines: the keyword as written (MUST NOT, AVOID, TIP).
kind: StringOn directive lines: the kind they open, close or are.
Trait Implementations§
impl Eq for LineInfo
impl StructuralPartialEq for LineInfo
Auto Trait Implementations§
impl Forget for LineInfo
impl Freeze for LineInfo
impl Move for LineInfo
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnsafeUnpin for LineInfo
impl UnwindSafe for LineInfo
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