[−][src]Struct html2text::render::text_renderer::TrivialDecorator
A decorator for use with TextRenderer
which outputs plain UTF-8 text
with no annotations or markup, emitting only the literal text.
Implementations
impl TrivialDecorator
[src]
pub fn new() -> TrivialDecorator
[src]
Create a new TrivialDecorator
.
Trait Implementations
impl Clone for TrivialDecorator
[src]
fn clone(&self) -> TrivialDecorator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl TextDecorator for TrivialDecorator
[src]
type Annotation = ()
An annotation which can be added to text, and which will be attached to spans of text. Read more
fn decorate_link_start(&mut self, _url: &str) -> (String, Self::Annotation)
[src]
fn decorate_link_end(&mut self) -> String
[src]
fn decorate_em_start(&mut self) -> (String, Self::Annotation)
[src]
fn decorate_em_end(&mut self) -> String
[src]
fn decorate_strong_start(&mut self) -> (String, Self::Annotation)
[src]
fn decorate_strong_end(&mut self) -> String
[src]
fn decorate_strikeout_start(&mut self) -> (String, Self::Annotation)
[src]
fn decorate_strikeout_end(&mut self) -> String
[src]
fn decorate_code_start(&mut self) -> (String, Self::Annotation)
[src]
fn decorate_code_end(&mut self) -> String
[src]
fn decorate_preformat_first(&mut self) -> Self::Annotation
[src]
fn decorate_preformat_cont(&mut self) -> Self::Annotation
[src]
fn decorate_image(&mut self, title: &str) -> (String, Self::Annotation)
[src]
fn finalise(self) -> Vec<TaggedLine<()>>
[src]
fn make_subblock_decorator(&self) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrivialDecorator
impl Send for TrivialDecorator
impl Sync for TrivialDecorator
impl Unpin for TrivialDecorator
impl UnwindSafe for TrivialDecorator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,