pub enum BlockContent {
Show 13 variants
Claim(ClaimSimple),
CodeBlock(CodeBlock),
CodeChunk(CodeChunk),
Collection(CollectionSimple),
Figure(FigureSimple),
Heading(Heading),
Include(Include),
List(List),
MathBlock(MathBlock),
Paragraph(Paragraph),
QuoteBlock(QuoteBlock),
Table(TableSimple),
ThematicBreak(ThematicBreak),
}
Expand description
Union type for valid block content.
Variants§
Claim(ClaimSimple)
CodeBlock(CodeBlock)
CodeChunk(CodeChunk)
Collection(CollectionSimple)
Figure(FigureSimple)
Heading(Heading)
Include(Include)
List(List)
MathBlock(MathBlock)
Paragraph(Paragraph)
QuoteBlock(QuoteBlock)
Table(TableSimple)
ThematicBreak(ThematicBreak)
Trait Implementations§
Source§impl AsRef<str> for BlockContent
impl AsRef<str> for BlockContent
Source§impl Clone for BlockContent
impl Clone for BlockContent
Source§fn clone(&self) -> BlockContent
fn clone(&self) -> BlockContent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlockContent
impl Debug for BlockContent
Source§impl<'de> Deserialize<'de> for BlockContent
impl<'de> Deserialize<'de> for BlockContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BlockContent
impl RefUnwindSafe for BlockContent
impl Send for BlockContent
impl Sync for BlockContent
impl Unpin for BlockContent
impl UnwindSafe for BlockContent
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