pub struct ParseTheme {
pub node_kind: Option<Color>,
pub node_text: Option<Color>,
pub field: Option<Color>,
pub row_color: Option<Color>,
pub row_color_named: Option<Color>,
pub extra: Option<Color>,
pub error: Option<Color>,
pub missing: Option<Color>,
pub line_feed: Option<Color>,
pub backtick: Option<Color>,
pub literal: Option<Color>,
}
Expand description
Sets the color used in the output of tree-sitter parse --cst
Fields§
§node_kind: Option<Color>
The color of node kinds
node_text: Option<Color>
The color of text associated with a node
field: Option<Color>
The color of node fields
row_color: Option<Color>
The color of the range information for unnamed nodes
row_color_named: Option<Color>
The color of the range information for named nodes
extra: Option<Color>
The color of extra nodes
error: Option<Color>
The color of ERROR nodes
missing: Option<Color>
The color of MISSING nodes and their associated text
line_feed: Option<Color>
The color of newline characters
backtick: Option<Color>
The color of backticks
literal: Option<Color>
The color of literals
Implementations§
Source§impl ParseTheme
impl ParseTheme
Trait Implementations§
Source§impl Clone for ParseTheme
impl Clone for ParseTheme
Source§fn clone(&self) -> ParseTheme
fn clone(&self) -> ParseTheme
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseTheme
impl Debug for ParseTheme
Source§impl Default for ParseTheme
impl Default for ParseTheme
Source§impl From<ParseThemeRaw> for ParseTheme
impl From<ParseThemeRaw> for ParseTheme
Source§fn from(value: ParseThemeRaw) -> Self
fn from(value: ParseThemeRaw) -> Self
Converts to this type from the input type.
impl Copy for ParseTheme
Auto Trait Implementations§
impl Freeze for ParseTheme
impl RefUnwindSafe for ParseTheme
impl Send for ParseTheme
impl Sync for ParseTheme
impl Unpin for ParseTheme
impl UnwindSafe for ParseTheme
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