pub enum LineKind {
Para,
Heading {
level: u8,
},
Code {
lang: Option<String>,
},
Island,
Rule,
}Expand description
The block role of a line. The tree between lines is inferred: two adjacent
lines with equal kind+containers are two blocks of that role (e.g. two
paragraphs), never one.
Variants§
Para
Heading
ATX/Setext heading, level 1..=6.
Code
A line of a code block. lang is the (sanitized) info string, shared by
every line of the same block.
Island
A block-level island: the line’s sole content is one ISLAND_SLOT.
Rule
A thematic break (---/***/___). The line carries no text — the
break is the line itself, parallel to how an island’s content is its
one slot char.
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.