#[non_exhaustive]pub enum Block {
Show 17 variants
TableOfContents(TableOfContents),
Admonition(Admonition),
DiscreteHeader(DiscreteHeader),
DocumentAttribute(DocumentAttribute),
ThematicBreak(ThematicBreak),
PageBreak(PageBreak),
UnorderedList(UnorderedList),
OrderedList(OrderedList),
CalloutList(CalloutList),
DescriptionList(DescriptionList),
Section(Section),
DelimitedBlock(DelimitedBlock),
Paragraph(Paragraph),
Image(Image),
Audio(Audio),
Video(Video),
Comment(Comment),
}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)
Admonition(Admonition)
DiscreteHeader(DiscreteHeader)
DocumentAttribute(DocumentAttribute)
ThematicBreak(ThematicBreak)
PageBreak(PageBreak)
UnorderedList(UnorderedList)
OrderedList(OrderedList)
CalloutList(CalloutList)
DescriptionList(DescriptionList)
Section(Section)
DelimitedBlock(DelimitedBlock)
Paragraph(Paragraph)
Image(Image)
Audio(Audio)
Video(Video)
Comment(Comment)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
Source§fn deserialize<D>(deserializer: D) -> Result<Block, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Block, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 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