pub struct BasicSyntaxHighlighter;Expand description
Lightweight dependency-free lexer used by the default code-block renderer.
It deliberately recognizes broad token classes rather than implementing a
language grammar. Applications can replace it with tree-sitter, syntect, or
an LSP-backed highlighter through RichSyntaxHighlighter.
Trait Implementations§
Source§impl Clone for BasicSyntaxHighlighter
impl Clone for BasicSyntaxHighlighter
impl Copy for BasicSyntaxHighlighter
Source§impl Debug for BasicSyntaxHighlighter
impl Debug for BasicSyntaxHighlighter
Source§impl Default for BasicSyntaxHighlighter
impl Default for BasicSyntaxHighlighter
Auto Trait Implementations§
impl Forget for BasicSyntaxHighlighter
impl Freeze for BasicSyntaxHighlighter
impl Move for BasicSyntaxHighlighter
impl RefUnwindSafe for BasicSyntaxHighlighter
impl Send for BasicSyntaxHighlighter
impl Sync for BasicSyntaxHighlighter
impl Unpin for BasicSyntaxHighlighter
impl UnsafeUnpin for BasicSyntaxHighlighter
impl UnwindSafe for BasicSyntaxHighlighter
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