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 new() -> HighlighterTargetHtml
pub fn new() -> HighlighterTargetHtml
Creates a new, default HTML target.
Sourcepub fn with_html_prefix<Str>(self, html_prefix: Str) -> HighlighterTargetHtml
pub fn with_html_prefix<Str>(self, html_prefix: Str) -> HighlighterTargetHtml
Returns this HTML target, with the provided HTML prefix.
Sourcepub fn with_html_suffix<Str>(self, html_suffix: Str) -> HighlighterTargetHtml
pub fn with_html_suffix<Str>(self, html_suffix: Str) -> HighlighterTargetHtml
Returns this HTML target, with the provided HTML suffix.
Sourcepub fn with_class_prefix<Str>(self, class_prefix: Str) -> HighlighterTargetHtml
pub fn with_class_prefix<Str>(self, class_prefix: Str) -> HighlighterTargetHtml
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 duplicate 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