#[non_exhaustive]pub enum SectionKind {
FrontMatter,
Heading {
level: u8,
},
Paragraph,
ListItem {
task: Option<bool>,
},
Quote,
Alert,
Code {
language: Option<String>,
},
Mermaid,
Table,
Rule,
Html,
Footnotes,
}Expand description
What a section is in the Markdown, so a consumer can pair and label sections without parsing again.
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.
FrontMatter
Heading
Paragraph
ListItem
One top-level item of a list; task is Some(done) for a task item.
Quote
Alert
Code
Mermaid
Table
Rule
Html
Footnotes
Trait Implementations§
Source§impl Clone for SectionKind
impl Clone for SectionKind
Source§impl Debug for SectionKind
impl Debug for SectionKind
impl Eq for SectionKind
Source§impl Hash for SectionKind
impl Hash for SectionKind
Source§impl Ord for SectionKind
impl Ord for SectionKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SectionKind
impl PartialEq for SectionKind
Source§impl PartialOrd for SectionKind
impl PartialOrd for SectionKind
impl StructuralPartialEq for SectionKind
Auto Trait Implementations§
impl Forget for SectionKind
impl Freeze for SectionKind
impl Move for SectionKind
impl RefUnwindSafe for SectionKind
impl Send for SectionKind
impl Sync for SectionKind
impl Unpin for SectionKind
impl UnsafeUnpin for SectionKind
impl UnwindSafe for SectionKind
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