pub enum BodyElement {
Show 35 variants
Paragraph(Box<Paragraph>),
LiteralBlock(Box<LiteralBlock>),
DoctestBlock(Box<DoctestBlock>),
MathBlock(Box<MathBlock>),
Rubric(Box<Rubric>),
SubstitutionDefinition(Box<SubstitutionDefinition>),
Comment(Box<Comment>),
Pending(Box<Pending>),
Target(Box<Target>),
Raw(Box<Raw>),
Image(Box<Image>),
Compound(Box<Compound>),
Container(Box<Container>),
BulletList(Box<BulletList>),
EnumeratedList(Box<EnumeratedList>),
DefinitionList(Box<DefinitionList>),
FieldList(Box<FieldList>),
OptionList(Box<OptionList>),
LineBlock(Box<LineBlock>),
BlockQuote(Box<BlockQuote>),
Admonition(Box<Admonition>),
Attention(Box<Attention>),
Hint(Box<Hint>),
Note(Box<Note>),
Caution(Box<Caution>),
Danger(Box<Danger>),
Error(Box<Error>),
Important(Box<Important>),
Tip(Box<Tip>),
Warning(Box<Warning>),
Footnote(Box<Footnote>),
Citation(Box<Citation>),
SystemMessage(Box<SystemMessage>),
Figure(Box<Figure>),
Table(Box<Table>),
}
Variants§
Paragraph(Box<Paragraph>)
LiteralBlock(Box<LiteralBlock>)
DoctestBlock(Box<DoctestBlock>)
MathBlock(Box<MathBlock>)
Rubric(Box<Rubric>)
SubstitutionDefinition(Box<SubstitutionDefinition>)
Comment(Box<Comment>)
Pending(Box<Pending>)
Target(Box<Target>)
Raw(Box<Raw>)
Image(Box<Image>)
Compound(Box<Compound>)
Container(Box<Container>)
BulletList(Box<BulletList>)
EnumeratedList(Box<EnumeratedList>)
DefinitionList(Box<DefinitionList>)
FieldList(Box<FieldList>)
OptionList(Box<OptionList>)
LineBlock(Box<LineBlock>)
BlockQuote(Box<BlockQuote>)
Admonition(Box<Admonition>)
Attention(Box<Attention>)
Hint(Box<Hint>)
Note(Box<Note>)
Caution(Box<Caution>)
Danger(Box<Danger>)
Error(Box<Error>)
Important(Box<Important>)
Tip(Box<Tip>)
Warning(Box<Warning>)
Footnote(Box<Footnote>)
Citation(Box<Citation>)
SystemMessage(Box<SystemMessage>)
Figure(Box<Figure>)
Table(Box<Table>)
Trait Implementations§
Source§impl Clone for BodyElement
impl Clone for BodyElement
Source§fn clone(&self) -> BodyElement
fn clone(&self) -> BodyElement
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 BodyElement
impl Debug for BodyElement
Source§impl HasChildren<BodyElement> for Attention
impl HasChildren<BodyElement> for Attention
fn with_children(children: Vec<BodyElement>) -> Attention
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Caution
impl HasChildren<BodyElement> for Caution
fn with_children(children: Vec<BodyElement>) -> Caution
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Compound
impl HasChildren<BodyElement> for Compound
fn with_children(children: Vec<BodyElement>) -> Compound
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Container
impl HasChildren<BodyElement> for Container
fn with_children(children: Vec<BodyElement>) -> Container
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Danger
impl HasChildren<BodyElement> for Danger
fn with_children(children: Vec<BodyElement>) -> Danger
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Definition
impl HasChildren<BodyElement> for Definition
fn with_children(children: Vec<BodyElement>) -> Definition
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Description
impl HasChildren<BodyElement> for Description
fn with_children(children: Vec<BodyElement>) -> Description
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Error
impl HasChildren<BodyElement> for Error
fn with_children(children: Vec<BodyElement>) -> Error
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for FieldBody
impl HasChildren<BodyElement> for FieldBody
fn with_children(children: Vec<BodyElement>) -> FieldBody
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
fn with_children(children: Vec<BodyElement>) -> Footer
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Header
impl HasChildren<BodyElement> for Header
fn with_children(children: Vec<BodyElement>) -> Header
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Hint
impl HasChildren<BodyElement> for Hint
fn with_children(children: Vec<BodyElement>) -> Hint
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Important
impl HasChildren<BodyElement> for Important
fn with_children(children: Vec<BodyElement>) -> Important
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Legend
impl HasChildren<BodyElement> for Legend
fn with_children(children: Vec<BodyElement>) -> Legend
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for ListItem
impl HasChildren<BodyElement> for ListItem
fn with_children(children: Vec<BodyElement>) -> ListItem
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Note
impl HasChildren<BodyElement> for Note
fn with_children(children: Vec<BodyElement>) -> Note
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for SystemMessage
impl HasChildren<BodyElement> for SystemMessage
fn with_children(children: Vec<BodyElement>) -> SystemMessage
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for TableEntry
impl HasChildren<BodyElement> for TableEntry
fn with_children(children: Vec<BodyElement>) -> TableEntry
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Tip
impl HasChildren<BodyElement> for Tip
fn with_children(children: Vec<BodyElement>) -> Tip
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<BodyElement> for Warning
impl HasChildren<BodyElement> for Warning
fn with_children(children: Vec<BodyElement>) -> Warning
fn children(&self) -> &Vec<BodyElement>
fn children_mut(&mut self) -> &mut Vec<BodyElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl Into<BodyElement> for Admonition
impl Into<BodyElement> for Admonition
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Attention
impl Into<BodyElement> for Attention
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for BlockQuote
impl Into<BodyElement> for BlockQuote
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for BulletList
impl Into<BodyElement> for BulletList
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Caution
impl Into<BodyElement> for Caution
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Citation
impl Into<BodyElement> for Citation
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Comment
impl Into<BodyElement> for Comment
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Compound
impl Into<BodyElement> for Compound
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Container
impl Into<BodyElement> for Container
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Danger
impl Into<BodyElement> for Danger
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for DefinitionList
impl Into<BodyElement> for DefinitionList
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for DoctestBlock
impl Into<BodyElement> for DoctestBlock
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for EnumeratedList
impl Into<BodyElement> for EnumeratedList
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Error
impl Into<BodyElement> for Error
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for FieldList
impl Into<BodyElement> for FieldList
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Figure
impl Into<BodyElement> for Figure
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Footnote
impl Into<BodyElement> for Footnote
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Hint
impl Into<BodyElement> for Hint
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Image
impl Into<BodyElement> for Image
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Important
impl Into<BodyElement> for Important
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for LineBlock
impl Into<BodyElement> for LineBlock
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for LiteralBlock
impl Into<BodyElement> for LiteralBlock
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for MathBlock
impl Into<BodyElement> for MathBlock
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Note
impl Into<BodyElement> for Note
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for OptionList
impl Into<BodyElement> for OptionList
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Paragraph
impl Into<BodyElement> for Paragraph
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Pending
impl Into<BodyElement> for Pending
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Raw
impl Into<BodyElement> for Raw
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Rubric
impl Into<BodyElement> for Rubric
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for SubstitutionDefinition
impl Into<BodyElement> for SubstitutionDefinition
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for SystemMessage
impl Into<BodyElement> for SystemMessage
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Table
impl Into<BodyElement> for Table
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Target
impl Into<BodyElement> for Target
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Tip
impl Into<BodyElement> for Tip
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<BodyElement> for Warning
impl Into<BodyElement> for Warning
Source§fn into(self) -> BodyElement
fn into(self) -> BodyElement
Converts this type into the (usually inferred) input type.
Source§impl Into<StructuralSubElement> for BodyElement
impl Into<StructuralSubElement> for BodyElement
Source§fn into(self) -> StructuralSubElement
fn into(self) -> StructuralSubElement
Converts this type into the (usually inferred) input type.
Source§impl Into<SubBlockQuote> for BodyElement
impl Into<SubBlockQuote> for BodyElement
Source§fn into(self) -> SubBlockQuote
fn into(self) -> SubBlockQuote
Converts this type into the (usually inferred) input type.
Source§impl Into<SubFigure> for BodyElement
impl Into<SubFigure> for BodyElement
Source§impl Into<SubFootnote> for BodyElement
impl Into<SubFootnote> for BodyElement
Source§fn into(self) -> SubFootnote
fn into(self) -> SubFootnote
Converts this type into the (usually inferred) input type.
Source§impl Into<SubSidebar> for BodyElement
impl Into<SubSidebar> for BodyElement
Source§fn into(self) -> SubSidebar
fn into(self) -> SubSidebar
Converts this type into the (usually inferred) input type.
Source§impl Into<SubStructure> for BodyElement
impl Into<SubStructure> for BodyElement
Source§fn into(self) -> SubStructure
fn into(self) -> SubStructure
Converts this type into the (usually inferred) input type.
Source§impl Into<SubTopic> for BodyElement
impl Into<SubTopic> for BodyElement
Source§impl PartialEq for BodyElement
impl PartialEq for BodyElement
Source§impl Serialize for BodyElement
impl Serialize for BodyElement
impl StructuralPartialEq for BodyElement
Auto Trait Implementations§
impl Freeze for BodyElement
impl RefUnwindSafe for BodyElement
impl Send for BodyElement
impl Sync for BodyElement
impl Unpin for BodyElement
impl UnwindSafe for BodyElement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)