#[non_exhaustive]pub enum BlockKind {
Show 17 variants
Blockquote,
Caption,
DefinitionDetail,
DefinitionList,
DefinitionTerm,
Document,
Footnote,
Heading,
Link,
OrderedListItem,
Paragraph,
Preformatted,
Table,
TableCell,
TableHeader,
TableRow,
UnorderedListItem,
}Expand description
Identifies the kind of block-level container in a document event stream.
Each variant corresponds to a Start/End event pair. The stack tracker uses this to maintain the nesting structure as events flow through.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Blockquote
A block quote container.
Caption
A table caption container.
DefinitionDetail
A definition detail (description) container.
DefinitionList
A definition list container.
DefinitionTerm
A definition term container.
Document
The document root container.
Footnote
A footnote definition container.
Heading
A heading container.
Link
A hyperlink container.
OrderedListItem
An ordered (numbered) list item container.
Paragraph
A paragraph container.
Preformatted
A preformatted (code) block container.
Table
A table container.
TableCell
A table data cell container.
TableHeader
A table header cell container.
TableRow
A table row container.
UnorderedListItem
An unordered (bulleted) list item container.
Trait Implementations§
impl Copy for BlockKind
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Freeze for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnsafeUnpin for BlockKind
impl UnwindSafe for BlockKind
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