pub enum Inline {
Show 20 variants Str(String), Emph(Vec<Inline>), Underline(Vec<Inline>), Strong(Vec<Inline>), Strikeout(Vec<Inline>), Superscript(Vec<Inline>), Subscript(Vec<Inline>), SmallCaps(Vec<Inline>), Quoted(QuoteTypeVec<Inline>), Cite(Vec<Citation>, Vec<Inline>), Code(AttrString), Space, SoftBreak, LineBreak, Math(MathTypeString), RawInline(FormatString), Link(AttrVec<Inline>, Target), Image(AttrVec<Inline>, Target), Note(Vec<Block>), Span(AttrVec<Inline>),
}
Expand description

a single formatting item like bold, italic or hyperlink

Variants

Str(String)

Text

Emph(Vec<Inline>)

Emphasized text

Underline(Vec<Inline>)

Underlined text

Strong(Vec<Inline>)

Strongly emphasized text

Strikeout(Vec<Inline>)

Superscript(Vec<Inline>)

Subscript(Vec<Inline>)

SmallCaps(Vec<Inline>)

Quoted(QuoteTypeVec<Inline>)

Quoted text

Cite(Vec<Citation>, Vec<Inline>)

Citation

Code(AttrString)

Inline code (literal)

Space

Inter-word space

SoftBreak

Soft line break

LineBreak

Hard line break

Math(MathTypeString)

TeX math (literal)

RawInline(FormatString)

Hyperlink: text (list of inlines), target

Image(AttrVec<Inline>, Target)

Image: alt text (list of inlines), target

Note(Vec<Block>)

Footnote or endnote

Span(AttrVec<Inline>)

Generic inline container with attributes

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.