[][src]Enum html2text::render::text_renderer::RichAnnotation

pub enum RichAnnotation {
    Default,
    Link(String),
    Image,
    Emphasis,
    Strong,
    Code,
    Preformat(bool),
}

Annotation type for "rich" text. Text is associated with a set of these.

Variants

Default

Normal text.

A link with the target.

Image

An image (attached to the title text)

Emphasis

Emphasised text, which might be rendered in bold or another colour.

Strong

Strong text, which might be rendered in bold or another colour.

Code

Code

Preformat(bool)

Preformatted; true if a continuation line for an overly-long line.

Trait Implementations

impl Clone for RichAnnotation[src]

impl Debug for RichAnnotation[src]

impl Default for RichAnnotation[src]

impl Eq for RichAnnotation[src]

impl PartialEq<RichAnnotation> for RichAnnotation[src]

impl StructuralEq for RichAnnotation[src]

impl StructuralPartialEq for RichAnnotation[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> 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.