pub enum TextOrInlineElement {
Show 20 variants
String(Box<String>),
Emphasis(Box<Emphasis>),
Strong(Box<Strong>),
Literal(Box<Literal>),
Reference(Box<Reference>),
FootnoteReference(Box<FootnoteReference>),
CitationReference(Box<CitationReference>),
SubstitutionReference(Box<SubstitutionReference>),
TitleReference(Box<TitleReference>),
Abbreviation(Box<Abbreviation>),
Acronym(Box<Acronym>),
Superscript(Box<Superscript>),
Subscript(Box<Subscript>),
Inline(Box<Inline>),
Problematic(Box<Problematic>),
Generated(Box<Generated>),
Math(Box<Math>),
TargetInline(Box<TargetInline>),
RawInline(Box<RawInline>),
ImageInline(Box<ImageInline>),
}
Variants§
String(Box<String>)
Emphasis(Box<Emphasis>)
Strong(Box<Strong>)
Literal(Box<Literal>)
Reference(Box<Reference>)
FootnoteReference(Box<FootnoteReference>)
CitationReference(Box<CitationReference>)
SubstitutionReference(Box<SubstitutionReference>)
TitleReference(Box<TitleReference>)
Abbreviation(Box<Abbreviation>)
Acronym(Box<Acronym>)
Superscript(Box<Superscript>)
Subscript(Box<Subscript>)
Inline(Box<Inline>)
Problematic(Box<Problematic>)
Generated(Box<Generated>)
Math(Box<Math>)
TargetInline(Box<TargetInline>)
RawInline(Box<RawInline>)
ImageInline(Box<ImageInline>)
Trait Implementations§
Source§impl Clone for TextOrInlineElement
impl Clone for TextOrInlineElement
Source§fn clone(&self) -> TextOrInlineElement
fn clone(&self) -> TextOrInlineElement
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 TextOrInlineElement
impl Debug for TextOrInlineElement
Source§impl<'a> From<&'a str> for TextOrInlineElement
impl<'a> From<&'a str> for TextOrInlineElement
Source§impl From<Abbreviation> for TextOrInlineElement
impl From<Abbreviation> for TextOrInlineElement
Source§fn from(inner: Abbreviation) -> Self
fn from(inner: Abbreviation) -> Self
Converts to this type from the input type.
Source§impl From<Acronym> for TextOrInlineElement
impl From<Acronym> for TextOrInlineElement
Source§impl From<CitationReference> for TextOrInlineElement
impl From<CitationReference> for TextOrInlineElement
Source§fn from(inner: CitationReference) -> Self
fn from(inner: CitationReference) -> Self
Converts to this type from the input type.
Source§impl From<Emphasis> for TextOrInlineElement
impl From<Emphasis> for TextOrInlineElement
Source§impl From<FootnoteReference> for TextOrInlineElement
impl From<FootnoteReference> for TextOrInlineElement
Source§fn from(inner: FootnoteReference) -> Self
fn from(inner: FootnoteReference) -> Self
Converts to this type from the input type.
Source§impl From<Generated> for TextOrInlineElement
impl From<Generated> for TextOrInlineElement
Source§impl From<ImageInline> for TextOrInlineElement
impl From<ImageInline> for TextOrInlineElement
Source§fn from(inner: ImageInline) -> Self
fn from(inner: ImageInline) -> Self
Converts to this type from the input type.
Source§impl From<Inline> for TextOrInlineElement
impl From<Inline> for TextOrInlineElement
Source§impl From<Literal> for TextOrInlineElement
impl From<Literal> for TextOrInlineElement
Source§impl From<Math> for TextOrInlineElement
impl From<Math> for TextOrInlineElement
Source§impl From<Problematic> for TextOrInlineElement
impl From<Problematic> for TextOrInlineElement
Source§fn from(inner: Problematic) -> Self
fn from(inner: Problematic) -> Self
Converts to this type from the input type.
Source§impl From<RawInline> for TextOrInlineElement
impl From<RawInline> for TextOrInlineElement
Source§impl From<Reference> for TextOrInlineElement
impl From<Reference> for TextOrInlineElement
Source§impl From<String> for TextOrInlineElement
impl From<String> for TextOrInlineElement
Source§impl From<Strong> for TextOrInlineElement
impl From<Strong> for TextOrInlineElement
Source§impl From<Subscript> for TextOrInlineElement
impl From<Subscript> for TextOrInlineElement
Source§impl From<SubstitutionReference> for TextOrInlineElement
impl From<SubstitutionReference> for TextOrInlineElement
Source§fn from(inner: SubstitutionReference) -> Self
fn from(inner: SubstitutionReference) -> Self
Converts to this type from the input type.
Source§impl From<Superscript> for TextOrInlineElement
impl From<Superscript> for TextOrInlineElement
Source§fn from(inner: Superscript) -> Self
fn from(inner: Superscript) -> Self
Converts to this type from the input type.
Source§impl From<TargetInline> for TextOrInlineElement
impl From<TargetInline> for TextOrInlineElement
Source§fn from(inner: TargetInline) -> Self
fn from(inner: TargetInline) -> Self
Converts to this type from the input type.
Source§impl From<TitleReference> for TextOrInlineElement
impl From<TitleReference> for TextOrInlineElement
Source§fn from(inner: TitleReference) -> Self
fn from(inner: TitleReference) -> Self
Converts to this type from the input type.
Source§impl HasChildren<TextOrInlineElement> for Abbreviation
impl HasChildren<TextOrInlineElement> for Abbreviation
fn with_children(children: Vec<TextOrInlineElement>) -> Abbreviation
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Acronym
impl HasChildren<TextOrInlineElement> for Acronym
fn with_children(children: Vec<TextOrInlineElement>) -> Acronym
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Address
impl HasChildren<TextOrInlineElement> for Address
fn with_children(children: Vec<TextOrInlineElement>) -> Address
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Attribution
impl HasChildren<TextOrInlineElement> for Attribution
fn with_children(children: Vec<TextOrInlineElement>) -> Attribution
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Author
impl HasChildren<TextOrInlineElement> for Author
fn with_children(children: Vec<TextOrInlineElement>) -> Author
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Caption
impl HasChildren<TextOrInlineElement> for Caption
fn with_children(children: Vec<TextOrInlineElement>) -> Caption
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for CitationReference
impl HasChildren<TextOrInlineElement> for CitationReference
fn with_children(children: Vec<TextOrInlineElement>) -> CitationReference
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Classifier
impl HasChildren<TextOrInlineElement> for Classifier
fn with_children(children: Vec<TextOrInlineElement>) -> Classifier
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Comment
impl HasChildren<TextOrInlineElement> for Comment
fn with_children(children: Vec<TextOrInlineElement>) -> Comment
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Contact
impl HasChildren<TextOrInlineElement> for Contact
fn with_children(children: Vec<TextOrInlineElement>) -> Contact
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Copyright
impl HasChildren<TextOrInlineElement> for Copyright
fn with_children(children: Vec<TextOrInlineElement>) -> Copyright
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Date
impl HasChildren<TextOrInlineElement> for Date
fn with_children(children: Vec<TextOrInlineElement>) -> Date
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for DoctestBlock
impl HasChildren<TextOrInlineElement> for DoctestBlock
fn with_children(children: Vec<TextOrInlineElement>) -> DoctestBlock
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Emphasis
impl HasChildren<TextOrInlineElement> for Emphasis
fn with_children(children: Vec<TextOrInlineElement>) -> Emphasis
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for FieldName
impl HasChildren<TextOrInlineElement> for FieldName
fn with_children(children: Vec<TextOrInlineElement>) -> FieldName
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for FootnoteReference
impl HasChildren<TextOrInlineElement> for FootnoteReference
fn with_children(children: Vec<TextOrInlineElement>) -> FootnoteReference
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Generated
impl HasChildren<TextOrInlineElement> for Generated
fn with_children(children: Vec<TextOrInlineElement>) -> Generated
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Inline
impl HasChildren<TextOrInlineElement> for Inline
fn with_children(children: Vec<TextOrInlineElement>) -> Inline
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Label
impl HasChildren<TextOrInlineElement> for Label
fn with_children(children: Vec<TextOrInlineElement>) -> Label
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Line
impl HasChildren<TextOrInlineElement> for Line
fn with_children(children: Vec<TextOrInlineElement>) -> Line
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for LiteralBlock
impl HasChildren<TextOrInlineElement> for LiteralBlock
fn with_children(children: Vec<TextOrInlineElement>) -> LiteralBlock
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Organization
impl HasChildren<TextOrInlineElement> for Organization
fn with_children(children: Vec<TextOrInlineElement>) -> Organization
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Paragraph
impl HasChildren<TextOrInlineElement> for Paragraph
fn with_children(children: Vec<TextOrInlineElement>) -> Paragraph
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Problematic
impl HasChildren<TextOrInlineElement> for Problematic
fn with_children(children: Vec<TextOrInlineElement>) -> Problematic
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Reference
impl HasChildren<TextOrInlineElement> for Reference
fn with_children(children: Vec<TextOrInlineElement>) -> Reference
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Revision
impl HasChildren<TextOrInlineElement> for Revision
fn with_children(children: Vec<TextOrInlineElement>) -> Revision
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Rubric
impl HasChildren<TextOrInlineElement> for Rubric
fn with_children(children: Vec<TextOrInlineElement>) -> Rubric
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Status
impl HasChildren<TextOrInlineElement> for Status
fn with_children(children: Vec<TextOrInlineElement>) -> Status
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Strong
impl HasChildren<TextOrInlineElement> for Strong
fn with_children(children: Vec<TextOrInlineElement>) -> Strong
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Subscript
impl HasChildren<TextOrInlineElement> for Subscript
fn with_children(children: Vec<TextOrInlineElement>) -> Subscript
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for SubstitutionDefinition
impl HasChildren<TextOrInlineElement> for SubstitutionDefinition
fn with_children(children: Vec<TextOrInlineElement>) -> SubstitutionDefinition
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for SubstitutionReference
impl HasChildren<TextOrInlineElement> for SubstitutionReference
fn with_children(children: Vec<TextOrInlineElement>) -> SubstitutionReference
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Subtitle
impl HasChildren<TextOrInlineElement> for Subtitle
fn with_children(children: Vec<TextOrInlineElement>) -> Subtitle
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Superscript
impl HasChildren<TextOrInlineElement> for Superscript
fn with_children(children: Vec<TextOrInlineElement>) -> Superscript
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Term
impl HasChildren<TextOrInlineElement> for Term
fn with_children(children: Vec<TextOrInlineElement>) -> Term
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Title
impl HasChildren<TextOrInlineElement> for Title
fn with_children(children: Vec<TextOrInlineElement>) -> Title
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for TitleReference
impl HasChildren<TextOrInlineElement> for TitleReference
fn with_children(children: Vec<TextOrInlineElement>) -> TitleReference
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl HasChildren<TextOrInlineElement> for Version
impl HasChildren<TextOrInlineElement> for Version
fn with_children(children: Vec<TextOrInlineElement>) -> Version
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
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 TextOrInlineElement
impl PartialEq for TextOrInlineElement
Source§impl Serialize for TextOrInlineElement
impl Serialize for TextOrInlineElement
impl StructuralPartialEq for TextOrInlineElement
Auto Trait Implementations§
impl Freeze for TextOrInlineElement
impl RefUnwindSafe for TextOrInlineElement
impl Send for TextOrInlineElement
impl Sync for TextOrInlineElement
impl Unpin for TextOrInlineElement
impl UnwindSafe for TextOrInlineElement
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