pub struct SyntaxHighlightConfig {
pub semantic_highlighting: bool,
pub highlight_tags: bool,
pub highlight_errors: bool,
pub max_tokens: usize,
}Expand description
Configuration for syntax highlighting
Fields§
§semantic_highlighting: boolEnable semantic highlighting (slower but more accurate)
Highlight override tags
highlight_errors: boolHighlight errors
max_tokens: usizeMaximum tokens to process (0 = unlimited)
Trait Implementations§
Source§impl Clone for SyntaxHighlightConfig
impl Clone for SyntaxHighlightConfig
Source§fn clone(&self) -> SyntaxHighlightConfig
fn clone(&self) -> SyntaxHighlightConfig
Returns a duplicate 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 SyntaxHighlightConfig
impl Debug for SyntaxHighlightConfig
Auto Trait Implementations§
impl Freeze for SyntaxHighlightConfig
impl RefUnwindSafe for SyntaxHighlightConfig
impl Send for SyntaxHighlightConfig
impl Sync for SyntaxHighlightConfig
impl Unpin for SyntaxHighlightConfig
impl UnwindSafe for SyntaxHighlightConfig
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