pub struct RustHighlighter {
pub use_parser: bool,
}Expand description
Rust syntax highlighter
RustHighlighter implements the Highlighter trait, providing syntax highlighting for Rust code.
Fields§
§use_parser: boolWhether to use parser-based highlighting for better accuracy
Implementations§
Source§impl RustHighlighter
impl RustHighlighter
Sourcepub fn with_parser() -> Self
pub fn with_parser() -> Self
Creates a highlighter instance that uses a parser
Trait Implementations§
Source§impl Default for RustHighlighter
impl Default for RustHighlighter
Source§impl Highlighter for RustHighlighter
impl Highlighter for RustHighlighter
Auto Trait Implementations§
impl Freeze for RustHighlighter
impl RefUnwindSafe for RustHighlighter
impl Send for RustHighlighter
impl Sync for RustHighlighter
impl Unpin for RustHighlighter
impl UnsafeUnpin for RustHighlighter
impl UnwindSafe for RustHighlighter
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