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

pub enum RenderLine<T: PartialEq + Eq + Clone + Debug + Default> {
    Text(TaggedLine<T>),
    Line(BorderHoriz),
}

A line, which can either be text or a line.

Variants

Text(TaggedLine<T>)

Some rendered text

A table border line

Methods

impl<T: PartialEq + Eq + Clone + Debug + Default> RenderLine<T>[src]

pub fn into_string(self) -> String[src]

Turn the rendered line into a String

pub fn into_tagged_line(self) -> TaggedLine<T>[src]

Convert into a TaggedLine<T>, if necessary squashing the BorderHoriz into one.

Trait Implementations

impl<T: Debug + PartialEq + Eq + Clone + Default> Debug for RenderLine<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for RenderLine<T> where
    T: RefUnwindSafe

impl<T> Send for RenderLine<T> where
    T: Send

impl<T> Sync for RenderLine<T> where
    T: Sync

impl<T> Unpin for RenderLine<T> where
    T: Unpin

impl<T> UnwindSafe for RenderLine<T> where
    T: UnwindSafe

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, 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.