HtmlSubstitutionRenderer

Struct HtmlSubstitutionRenderer 

Source
pub struct HtmlSubstitutionRenderer {}
Expand description

Implementation of InlineSubstitutionRenderer that renders substitutions for common HTML-based applications.

Trait Implementations§

Source§

impl Debug for HtmlSubstitutionRenderer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl InlineSubstitutionRenderer for HtmlSubstitutionRenderer

Source§

fn render_special_character(&self, type_: SpecialCharacter, dest: &mut String)

Renders the substitution for a special character. Read more
Source§

fn render_quoted_substitition( &self, type_: QuoteType, _scope: QuoteScope, attrlist: Option<Attrlist<'_>>, id: Option<String>, body: &str, dest: &mut String, )

Renders the content of a quote substitution. Read more
Source§

fn render_character_replacement( &self, type_: CharacterReplacementType, dest: &mut String, )

Renders the content of a character replacement. Read more
Source§

fn render_line_break(&self, dest: &mut String)

Renders a line break. Read more
Source§

fn render_image(&self, params: &ImageRenderParams<'_>, dest: &mut String)

Renders an image. Read more
Source§

fn image_uri( &self, target_image_path: &str, parser: &Parser<'_>, asset_dir_key: Option<&str>, ) -> String

Construct a URI reference or data URI to the target image. Read more
Source§

fn render_icon(&self, params: &IconRenderParams<'_>, dest: &mut String)

Renders an icon. Read more
Renders a link. Read more
Source§

fn render_anchor(&self, id: &str, _reftext: Option<String>, dest: &mut String)

Renders an anchor. Read more
Source§

fn icon_uri( &self, name: &str, _attrlist: &Attrlist<'_>, parser: &Parser<'_>, ) -> String

Construct a reference or data URI to an icon image for the specified icon name. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.