pub enum Block {
Heading {
span: Span,
level: u8,
inline: Vec<Inline>,
},
Paragraph {
span: Span,
inline: Vec<Inline>,
},
List {
span: Span,
order: Order,
spacing: Spacing,
items: Vec<ListItem>,
},
Quote {
span: Span,
blocks: Vec<Block>,
},
Code {
span: Span,
info: String,
text: String,
},
Table {
span: Span,
align: Vec<Align>,
head: Row,
body: Vec<Row>,
},
Rule {
span: Span,
},
Footnote {
span: Span,
name: String,
blocks: Vec<Block>,
},
Unsupported {
span: Span,
construct: Construct,
source: String,
},
}Expand description
One block of a window, with the bytes of the version it was read from (D26).
Variants§
Heading
level is 1 to 6.
Paragraph
List
Quote
Code
A fenced or indented code block; info is the fence’s info string,
empty for an indented block, and text may be empty.
Table
Rule
A thematic break.
Footnote
A footnote’s definition, where the source put it.
Unsupported
Read but not drawn: the page shows source, the block’s own text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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