#[non_exhaustive]pub enum Block<'a> {
Show 17 variants
TableOfContents(TableOfContents<'a>),
Admonition(Admonition<'a>),
DiscreteHeader(DiscreteHeader<'a>),
DocumentAttribute(DocumentAttribute<'a>),
ThematicBreak(ThematicBreak<'a>),
PageBreak(PageBreak<'a>),
UnorderedList(UnorderedList<'a>),
OrderedList(OrderedList<'a>),
CalloutList(CalloutList<'a>),
DescriptionList(DescriptionList<'a>),
Section(Section<'a>),
DelimitedBlock(DelimitedBlock<'a>),
Paragraph(Paragraph<'a>),
Image(Image<'a>),
Audio(Audio<'a>),
Video(Video<'a>),
Comment(Comment<'a>),
}Expand description
A Block represents a block in a document.
A block is a structural element in a document that can contain other blocks.
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.
TableOfContents(TableOfContents<'a>)
Admonition(Admonition<'a>)
DiscreteHeader(DiscreteHeader<'a>)
DocumentAttribute(DocumentAttribute<'a>)
ThematicBreak(ThematicBreak<'a>)
PageBreak(PageBreak<'a>)
UnorderedList(UnorderedList<'a>)
OrderedList(OrderedList<'a>)
CalloutList(CalloutList<'a>)
DescriptionList(DescriptionList<'a>)
Section(Section<'a>)
DelimitedBlock(DelimitedBlock<'a>)
Paragraph(Paragraph<'a>)
Image(Image<'a>)
Audio(Audio<'a>)
Video(Video<'a>)
Comment(Comment<'a>)
Trait Implementations§
impl<'a> StructuralPartialEq for Block<'a>
Auto Trait Implementations§
impl<'a> Freeze for Block<'a>
impl<'a> RefUnwindSafe for Block<'a>
impl<'a> Send for Block<'a>
impl<'a> Sync for Block<'a>
impl<'a> Unpin for Block<'a>
impl<'a> UnsafeUnpin for Block<'a>
impl<'a> UnwindSafe for Block<'a>
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