pub struct HighlighterTargetHtml { /* private fields */ }
Expand description
An HTML target for Highlighter.
TODO: add a beautify option.
Implementations
sourceimpl 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
sourceimpl Clone for HighlighterTargetHtml
impl Clone for HighlighterTargetHtml
sourcefn clone(&self) -> HighlighterTargetHtml
fn clone(&self) -> HighlighterTargetHtml
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HighlighterTargetHtml
impl Debug for HighlighterTargetHtml
sourceimpl PartialEq<HighlighterTargetHtml> for HighlighterTargetHtml
impl PartialEq<HighlighterTargetHtml> for HighlighterTargetHtml
sourcefn eq(&self, other: &HighlighterTargetHtml) -> bool
fn eq(&self, other: &HighlighterTargetHtml) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for HighlighterTargetHtml
Auto Trait Implementations
impl RefUnwindSafe for HighlighterTargetHtml
impl Send for HighlighterTargetHtml
impl Sync for HighlighterTargetHtml
impl Unpin for HighlighterTargetHtml
impl UnwindSafe for HighlighterTargetHtml
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more