pub enum LineKind {
FrontMatter,
Fence,
Comment,
Heading,
Table,
Blank,
Prose(Prose),
}Expand description
What one source line is, for a prose gate.
Variants§
FrontMatter
Inside the leading --- front matter, or its fence lines.
Fence
A fenced code block, opening and closing fences included.
Comment
An HTML comment line (a directive is classified separately by the gate).
Heading
A heading line.
Table
A table row or delimiter row.
Blank
A blank line, a thematic break, or a link reference definition.
Prose(Prose)
Prose the gate measures. Carries the container-stripped content, the 1-based line number, and whether it opens a numbered list item.
Trait Implementations§
impl Eq for LineKind
impl StructuralPartialEq for LineKind
Auto Trait Implementations§
impl Freeze for LineKind
impl RefUnwindSafe for LineKind
impl Send for LineKind
impl Sync for LineKind
impl Unpin for LineKind
impl UnsafeUnpin for LineKind
impl UnwindSafe for LineKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.