pub struct HighlighterTargetHtml { /* private fields */ }
Expand description
An HTML target for Highlighter.
TODO: add a beautify option.
Implementations§
Source§impl HighlighterTargetHtml
impl HighlighterTargetHtml
Sourcepub fn with_html_prefix<Str: Into<String>>(self, html_prefix: Str) -> Self
pub fn with_html_prefix<Str: Into<String>>(self, html_prefix: Str) -> Self
Returns this HTML target, with the provided HTML prefix.
Sourcepub fn with_html_suffix<Str: Into<String>>(self, html_suffix: Str) -> Self
pub fn with_html_suffix<Str: Into<String>>(self, html_suffix: Str) -> Self
Returns this HTML target, with the provided HTML suffix.
Sourcepub fn with_class_prefix<Str: Into<String>>(self, class_prefix: Str) -> Self
pub fn with_class_prefix<Str: Into<String>>(self, class_prefix: Str) -> Self
Returns this HTML target, with the provided class prefix.
Trait Implementations§
Source§impl Clone for HighlighterTargetHtml
impl Clone for HighlighterTargetHtml
Source§fn clone(&self) -> HighlighterTargetHtml
fn clone(&self) -> HighlighterTargetHtml
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 moreSource§impl Debug for HighlighterTargetHtml
impl Debug for HighlighterTargetHtml
Source§impl PartialEq for HighlighterTargetHtml
impl PartialEq for HighlighterTargetHtml
impl StructuralPartialEq for HighlighterTargetHtml
Auto Trait Implementations§
impl Freeze for HighlighterTargetHtml
impl RefUnwindSafe for HighlighterTargetHtml
impl Send for HighlighterTargetHtml
impl Sync for HighlighterTargetHtml
impl Unpin for HighlighterTargetHtml
impl UnwindSafe for HighlighterTargetHtml
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