pub struct Highlighter { /* private fields */ }Expand description
A whole-document highlighter over a grammar + theme. Owns both; syntect stays private behind it.
Implementations§
Source§impl Highlighter
impl Highlighter
Sourcepub fn new(syntax: SyntaxDef, theme: TokenTheme) -> Self
pub fn new(syntax: SyntaxDef, theme: TokenTheme) -> Self
A highlighter over an injected grammar and theme.
Auto Trait Implementations§
impl !Freeze for Highlighter
impl RefUnwindSafe for Highlighter
impl Send for Highlighter
impl Sync for Highlighter
impl Unpin for Highlighter
impl UnsafeUnpin for Highlighter
impl UnwindSafe for Highlighter
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