pub struct HtmlSubstitutionRenderer {}Expand description
Implementation of InlineSubstitutionRenderer that renders substitutions
for common HTML-based applications.
Trait Implementations§
Source§impl Debug for HtmlSubstitutionRenderer
impl Debug for HtmlSubstitutionRenderer
Source§impl InlineSubstitutionRenderer for HtmlSubstitutionRenderer
impl InlineSubstitutionRenderer for HtmlSubstitutionRenderer
Source§fn render_special_character(&self, type_: SpecialCharacter, dest: &mut String)
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,
)
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,
)
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)
fn render_line_break(&self, dest: &mut String)
Renders a line break. Read more
Source§fn render_image(&self, params: &ImageRenderParams<'_>, dest: &mut String)
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
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)
fn render_icon(&self, params: &IconRenderParams<'_>, dest: &mut String)
Renders an icon. Read more
Source§fn render_link(&self, params: &LinkRenderParams<'_>, dest: &mut String)
fn render_link(&self, params: &LinkRenderParams<'_>, dest: &mut String)
Renders a link. Read more
Auto Trait Implementations§
impl Freeze for HtmlSubstitutionRenderer
impl RefUnwindSafe for HtmlSubstitutionRenderer
impl Send for HtmlSubstitutionRenderer
impl Sync for HtmlSubstitutionRenderer
impl Unpin for HtmlSubstitutionRenderer
impl UnwindSafe for HtmlSubstitutionRenderer
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