pub struct JavaScriptHighlighter;Trait Implementations§
Source§impl Highlighter for JavaScriptHighlighter
impl Highlighter for JavaScriptHighlighter
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 JavaScriptHighlighter
impl RefUnwindSafe for JavaScriptHighlighter
impl Send for JavaScriptHighlighter
impl Sync for JavaScriptHighlighter
impl Unpin for JavaScriptHighlighter
impl UnwindSafe for JavaScriptHighlighter
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