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 From<Admonition> for BodyElement
impl From<Admonition> for BodyElement
Source§fn from(inner: Admonition) -> Self
fn from(inner: Admonition) -> Self
Converts to this type from the input type.
Source§impl From<Attention> for BodyElement
impl From<Attention> for BodyElement
Source§impl From<BlockQuote> for BodyElement
impl From<BlockQuote> for BodyElement
Source§fn from(inner: BlockQuote) -> Self
fn from(inner: BlockQuote) -> Self
Converts to this type from the input type.
Source§impl From<BodyElement> for StructuralSubElement
impl From<BodyElement> for StructuralSubElement
Source§fn from(inner: BodyElement) -> Self
fn from(inner: BodyElement) -> Self
Converts to this type from the input type.
Source§impl From<BodyElement> for SubBlockQuote
impl From<BodyElement> for SubBlockQuote
Source§fn from(inner: BodyElement) -> Self
fn from(inner: BodyElement) -> Self
Converts to this type from the input type.
Source§impl From<BodyElement> for SubFigure
impl From<BodyElement> for SubFigure
Source§fn from(inner: BodyElement) -> Self
fn from(inner: BodyElement) -> Self
Converts to this type from the input type.
Source§impl From<BodyElement> for SubFootnote
impl From<BodyElement> for SubFootnote
Source§fn from(inner: BodyElement) -> Self
fn from(inner: BodyElement) -> Self
Converts to this type from the input type.
Source§impl From<BodyElement> for SubSidebar
impl From<BodyElement> for SubSidebar
Source§fn from(inner: BodyElement) -> Self
fn from(inner: BodyElement) -> Self
Converts to this type from the input type.
Source§impl From<BodyElement> for SubStructure
impl From<BodyElement> for SubStructure
Source§fn from(inner: BodyElement) -> Self
fn from(inner: BodyElement) -> Self
Converts to this type from the input type.
Source§impl From<BodyElement> for SubTopic
impl From<BodyElement> for SubTopic
Source§fn from(inner: BodyElement) -> Self
fn from(inner: BodyElement) -> Self
Converts to this type from the input type.
Source§impl From<BulletList> for BodyElement
impl From<BulletList> for BodyElement
Source§fn from(inner: BulletList) -> Self
fn from(inner: BulletList) -> Self
Converts to this type from the input type.
Source§impl From<Caution> for BodyElement
impl From<Caution> for BodyElement
Source§impl From<Citation> for BodyElement
impl From<Citation> for BodyElement
Source§impl From<Comment> for BodyElement
impl From<Comment> for BodyElement
Source§impl From<Compound> for BodyElement
impl From<Compound> for BodyElement
Source§impl From<Container> for BodyElement
impl From<Container> for BodyElement
Source§impl From<Danger> for BodyElement
impl From<Danger> for BodyElement
Source§impl From<DefinitionList> for BodyElement
impl From<DefinitionList> for BodyElement
Source§fn from(inner: DefinitionList) -> Self
fn from(inner: DefinitionList) -> Self
Converts to this type from the input type.
Source§impl From<DoctestBlock> for BodyElement
impl From<DoctestBlock> for BodyElement
Source§fn from(inner: DoctestBlock) -> Self
fn from(inner: DoctestBlock) -> Self
Converts to this type from the input type.
Source§impl From<EnumeratedList> for BodyElement
impl From<EnumeratedList> for BodyElement
Source§fn from(inner: EnumeratedList) -> Self
fn from(inner: EnumeratedList) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BodyElement
impl From<Error> for BodyElement
Source§impl From<FieldList> for BodyElement
impl From<FieldList> for BodyElement
Source§impl From<Figure> for BodyElement
impl From<Figure> for BodyElement
Source§impl From<Footnote> for BodyElement
impl From<Footnote> for BodyElement
Source§impl From<Hint> for BodyElement
impl From<Hint> for BodyElement
Source§impl From<Image> for BodyElement
impl From<Image> for BodyElement
Source§impl From<Important> for BodyElement
impl From<Important> for BodyElement
Source§impl From<LineBlock> for BodyElement
impl From<LineBlock> for BodyElement
Source§impl From<LiteralBlock> for BodyElement
impl From<LiteralBlock> for BodyElement
Source§fn from(inner: LiteralBlock) -> Self
fn from(inner: LiteralBlock) -> Self
Converts to this type from the input type.
Source§impl From<MathBlock> for BodyElement
impl From<MathBlock> for BodyElement
Source§impl From<Note> for BodyElement
impl From<Note> for BodyElement
Source§impl From<OptionList> for BodyElement
impl From<OptionList> for BodyElement
Source§fn from(inner: OptionList) -> Self
fn from(inner: OptionList) -> Self
Converts to this type from the input type.
Source§impl From<Paragraph> for BodyElement
impl From<Paragraph> for BodyElement
Source§impl From<Pending> for BodyElement
impl From<Pending> for BodyElement
Source§impl From<Raw> for BodyElement
impl From<Raw> for BodyElement
Source§impl From<Rubric> for BodyElement
impl From<Rubric> for BodyElement
Source§impl From<SubstitutionDefinition> for BodyElement
impl From<SubstitutionDefinition> for BodyElement
Source§fn from(inner: SubstitutionDefinition) -> Self
fn from(inner: SubstitutionDefinition) -> Self
Converts to this type from the input type.
Source§impl From<SystemMessage> for BodyElement
impl From<SystemMessage> for BodyElement
Source§fn from(inner: SystemMessage) -> Self
fn from(inner: SystemMessage) -> Self
Converts to this type from the input type.
Source§impl From<Table> for BodyElement
impl From<Table> for BodyElement
Source§impl From<Target> for BodyElement
impl From<Target> for BodyElement
Source§impl From<Tip> for BodyElement
impl From<Tip> for BodyElement
Source§impl From<Warning> for BodyElement
impl From<Warning> 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 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