pub struct Highlighter { /* private fields */ }Implementations§
Source§impl Highlighter
impl Highlighter
Sourcepub fn new(syntax: SyntaxTheme) -> Self
pub fn new(syntax: SyntaxTheme) -> Self
Build a highlighter whose foregrounds come from syntax.
Trait Implementations§
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