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