Enum html2text::render::text_renderer::RenderLine
source · pub enum RenderLine<T> {
Text(TaggedLine<T>),
Line(BorderHoriz<T>),
}
Expand description
A line, which can either be text or a line.
Variants§
Implementations§
source§impl<T: PartialEq + Eq + Clone + Debug + Default> RenderLine<T>
impl<T: PartialEq + Eq + Clone + Debug + Default> RenderLine<T>
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Turn the rendered line into a String
sourcepub fn into_tagged_line(self) -> TaggedLine<T>
pub fn into_tagged_line(self) -> TaggedLine<T>
Convert into a TaggedLine<T>
, if necessary squashing the
BorderHoriz into one.
Trait Implementations§
source§impl<T: Clone> Clone for RenderLine<T>
impl<T: Clone> Clone for RenderLine<T>
source§fn clone(&self) -> RenderLine<T>
fn clone(&self) -> RenderLine<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for RenderLine<T>where
T: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more