pub enum BlockNode {
Table {
columns: Vec<String>,
rows: Vec<Vec<String>>,
row_pos: Vec<SourcePos>,
anchor: Option<String>,
pos: SourcePos,
range: Range<usize>,
},
List {
ordered: bool,
items: Vec<ListItem>,
anchor: Option<String>,
pos: SourcePos,
range: Range<usize>,
},
Code {
lang: Option<String>,
value: String,
fenced: bool,
anchor: Option<String>,
pos: SourcePos,
range: Range<usize>,
},
Paragraph {
text: String,
anchor: Option<String>,
pos: SourcePos,
range: Range<usize>,
},
}Expand description
A flattened content block directly under a section heading.
Variants§
Table
A table.
Fields
§
range: Range<usize>the bytes of the table in DocTree::body
List
A list.
Fields
§
range: Range<usize>the bytes of the list in DocTree::body
Code
A fenced or indented code block.
Fields
§
fenced: booltrue for a fenced block, whose value starts on the line after pos; an
indented block’s value starts on pos.line
§
range: Range<usize>the bytes of the block in DocTree::body
Paragraph
A paragraph.
Implementations§
Trait Implementations§
impl Eq for BlockNode
impl StructuralPartialEq for BlockNode
Auto Trait Implementations§
impl Freeze for BlockNode
impl RefUnwindSafe for BlockNode
impl Send for BlockNode
impl Sync for BlockNode
impl Unpin for BlockNode
impl UnsafeUnpin for BlockNode
impl UnwindSafe for BlockNode
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.