document_tree::element_categories

Enum TextOrInlineElement

Source
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

Source§

fn clone(&self) -> TextOrInlineElement

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TextOrInlineElement

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a str> for TextOrInlineElement

Source§

fn from(s: &'a str) -> Self

Converts to this type from the input type.
Source§

impl From<Abbreviation> for TextOrInlineElement

Source§

fn from(inner: Abbreviation) -> Self

Converts to this type from the input type.
Source§

impl From<Acronym> for TextOrInlineElement

Source§

fn from(inner: Acronym) -> Self

Converts to this type from the input type.
Source§

impl From<CitationReference> for TextOrInlineElement

Source§

fn from(inner: CitationReference) -> Self

Converts to this type from the input type.
Source§

impl From<Emphasis> for TextOrInlineElement

Source§

fn from(inner: Emphasis) -> Self

Converts to this type from the input type.
Source§

impl From<FootnoteReference> for TextOrInlineElement

Source§

fn from(inner: FootnoteReference) -> Self

Converts to this type from the input type.
Source§

impl From<Generated> for TextOrInlineElement

Source§

fn from(inner: Generated) -> Self

Converts to this type from the input type.
Source§

impl From<ImageInline> for TextOrInlineElement

Source§

fn from(inner: ImageInline) -> Self

Converts to this type from the input type.
Source§

impl From<Inline> for TextOrInlineElement

Source§

fn from(inner: Inline) -> Self

Converts to this type from the input type.
Source§

impl From<Literal> for TextOrInlineElement

Source§

fn from(inner: Literal) -> Self

Converts to this type from the input type.
Source§

impl From<Math> for TextOrInlineElement

Source§

fn from(inner: Math) -> Self

Converts to this type from the input type.
Source§

impl From<Problematic> for TextOrInlineElement

Source§

fn from(inner: Problematic) -> Self

Converts to this type from the input type.
Source§

impl From<RawInline> for TextOrInlineElement

Source§

fn from(inner: RawInline) -> Self

Converts to this type from the input type.
Source§

impl From<Reference> for TextOrInlineElement

Source§

fn from(inner: Reference) -> Self

Converts to this type from the input type.
Source§

impl From<String> for TextOrInlineElement

Source§

fn from(inner: String) -> Self

Converts to this type from the input type.
Source§

impl From<Strong> for TextOrInlineElement

Source§

fn from(inner: Strong) -> Self

Converts to this type from the input type.
Source§

impl From<Subscript> for TextOrInlineElement

Source§

fn from(inner: Subscript) -> Self

Converts to this type from the input type.
Source§

impl From<SubstitutionReference> for TextOrInlineElement

Source§

fn from(inner: SubstitutionReference) -> Self

Converts to this type from the input type.
Source§

impl From<Superscript> for TextOrInlineElement

Source§

fn from(inner: Superscript) -> Self

Converts to this type from the input type.
Source§

impl From<TargetInline> for TextOrInlineElement

Source§

fn from(inner: TargetInline) -> Self

Converts to this type from the input type.
Source§

impl From<TitleReference> for TextOrInlineElement

Source§

fn from(inner: TitleReference) -> Self

Converts to this type from the input type.
Source§

impl HasChildren<TextOrInlineElement> for Abbreviation

Source§

impl HasChildren<TextOrInlineElement> for Acronym

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Acronym

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Address

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Address

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Attribution

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Attribution

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Author

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Author

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Caption

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Caption

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for CitationReference

Source§

impl HasChildren<TextOrInlineElement> for Classifier

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Classifier

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Comment

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Comment

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Contact

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Contact

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Copyright

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Date

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Date

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for DoctestBlock

Source§

impl HasChildren<TextOrInlineElement> for Emphasis

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Emphasis

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for FieldName

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> FieldName

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for FootnoteReference

Source§

impl HasChildren<TextOrInlineElement> for Generated

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Generated

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Inline

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Inline

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Label

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Label

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Line

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Line

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for LiteralBlock

Source§

impl HasChildren<TextOrInlineElement> for Organization

Source§

impl HasChildren<TextOrInlineElement> for Paragraph

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Paragraph

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Problematic

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Problematic

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Reference

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Reference

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Revision

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Revision

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Rubric

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Rubric

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Status

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Status

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Strong

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Strong

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Subscript

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Subscript

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for SubstitutionDefinition

Source§

impl HasChildren<TextOrInlineElement> for SubstitutionReference

Source§

impl HasChildren<TextOrInlineElement> for Subtitle

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Subtitle

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Superscript

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Superscript

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Term

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Term

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for Title

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Title

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl HasChildren<TextOrInlineElement> for TitleReference

Source§

impl HasChildren<TextOrInlineElement> for Version

Source§

fn with_children(children: Vec<TextOrInlineElement>) -> Version

Source§

fn children(&self) -> &Vec<TextOrInlineElement>

Source§

fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>

Source§

fn append_child<R: Into<C>>(&mut self, child: R)

Source§

fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])

Source§

impl PartialEq for TextOrInlineElement

Source§

fn eq(&self, other: &TextOrInlineElement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TextOrInlineElement

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TextOrInlineElement

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T