pub struct HtmlHighlighter { /* private fields */ }Expand description
HTML Highlighter
Implementations§
Trait Implementations§
Source§impl Highlighter for HtmlHighlighter
impl Highlighter for HtmlHighlighter
Source§fn highlight<'a>(
&self,
source: &'a str,
_language: &str,
theme: Theme,
) -> ParseResult<HighlightResult<'a>>
fn highlight<'a>( &self, source: &'a str, _language: &str, theme: Theme, ) -> ParseResult<HighlightResult<'a>>
Highlight the given source code for a specific language and theme.
Auto Trait Implementations§
impl Freeze for HtmlHighlighter
impl RefUnwindSafe for HtmlHighlighter
impl Send for HtmlHighlighter
impl Sync for HtmlHighlighter
impl Unpin for HtmlHighlighter
impl UnwindSafe for HtmlHighlighter
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