Enum somedoc::model::inline::InlineContent[][src]

pub enum InlineContent {
    HyperLink(HyperLink),
    Image(Image),
    Text(Text),
    Math(Math),
    Character(Character),
    LineBreak,
    Span(Span),
}

The set of supported inline content types.

Variants

A link which may be to an internal document location or an external document.

Image(Image)

An image, referenced via a HyperLink.

Text(Text)

Plain text.

Math(Math)

Inline formatted math formula.

Character(Character)

A single character.

LineBreak

A break within a set of inline content.

Span(Span)

A span contains other inline content and may also be styled.

Trait Implementations

impl Clone for InlineContent[src]

impl Debug for InlineContent[src]

impl<'de> Deserialize<'de> for InlineContent[src]

impl From<InlineContent> for Span[src]

impl From<InlineContent> for Heading[src]

impl From<InlineContent> for Item[src]

impl From<InlineContent> for DefinitionPart[src]

impl From<InlineContent> for Paragraph[src]

impl From<InlineContent> for Cell[src]

impl HasInnerContent<InlineContent> for Span[src]

impl HasInnerContent<InlineContent> for Heading[src]

impl HasInnerContent<InlineContent> for Item[src]

impl HasInnerContent<InlineContent> for DefinitionPart[src]

impl HasInnerContent<InlineContent> for Paragraph[src]

impl HasInnerContent<InlineContent> for Cell[src]

impl Into<InlineContent> for Character[src]

impl Into<InlineContent> for Image[src]

impl Into<InlineContent> for HyperLink[src]

impl Into<InlineContent> for Text[src]

impl Into<InlineContent> for Span[src]

impl Serialize for InlineContent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.