pub struct HighlightSpec {
pub names: Vec<String>,
pub indices: Vec<usize>,
}Expand description
Highlight specification used for syntax highlighting using Tree-sitter.
Fields§
§names: Vec<String>Names of the Tree-sitter nodes. Syntax specific
indices: Vec<usize>indices into Base16 palette
Implementations§
Auto Trait Implementations§
impl Freeze for HighlightSpec
impl RefUnwindSafe for HighlightSpec
impl Send for HighlightSpec
impl Sync for HighlightSpec
impl Unpin for HighlightSpec
impl UnsafeUnpin for HighlightSpec
impl UnwindSafe for HighlightSpec
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