pub enum Section<'src> {
Heading {
level: u8,
content: InlineSpan,
},
Paragraph {
content: InlineSpan,
},
CodeBlock {
language: Option<&'src str>,
code: &'src str,
},
UnorderedList {
items: SpanSlice,
},
OrderedList {
start: u32,
delimiter: OrderedListDelimiter,
items: SpanSlice,
},
Blockquote {
content: InlineSpan,
},
HorizontalRule,
}Expand description
A block-level element of a Markdown document.
Variants§
Heading
Paragraph
Fields
§
content: InlineSpanCodeBlock
UnorderedList
OrderedList
Blockquote
Fields
§
content: InlineSpanHorizontalRule
Trait Implementations§
impl<'src> Copy for Section<'src>
impl<'src> Eq for Section<'src>
impl<'src> StructuralPartialEq for Section<'src>
Auto Trait Implementations§
impl<'src> Freeze for Section<'src>
impl<'src> RefUnwindSafe for Section<'src>
impl<'src> Send for Section<'src>
impl<'src> Sync for Section<'src>
impl<'src> Unpin for Section<'src>
impl<'src> UnsafeUnpin for Section<'src>
impl<'src> UnwindSafe for Section<'src>
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