pub struct Highlighter { /* private fields */ }Available on crate feature
highlight only.Expand description
Tokenizes source code using a catalog of syntax definitions.
Implementations§
Source§impl Highlighter
impl Highlighter
Sourcepub fn new() -> Highlighter
pub fn new() -> Highlighter
A highlighter over the bundled syntax definitions.
Sourcepub fn registry_mut(&mut self) -> &mut Registry
pub fn registry_mut(&mut self) -> &mut Registry
The catalog backing this highlighter, mutably (to register user definitions).
Trait Implementations§
Source§impl Debug for Highlighter
impl Debug for Highlighter
Source§impl Default for Highlighter
impl Default for Highlighter
Source§fn default() -> Highlighter
fn default() -> Highlighter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for Highlighter
impl !RefUnwindSafe for Highlighter
impl !Send for Highlighter
impl !Sync for Highlighter
impl !UnwindSafe for Highlighter
impl Unpin for Highlighter
impl UnsafeUnpin 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