#[non_exhaustive]pub enum HighlightQueryErrorKind {
Syntax,
NodeType,
Field,
Capture,
Predicate,
Structure,
Language,
}Expand description
The category of a tree-sitter highlights query compilation error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Syntax
Invalid query syntax.
NodeType
Invalid node type.
Field
Invalid field name.
Capture
Invalid capture name.
Predicate
Invalid predicate.
Structure
Impossible query pattern structure.
Language
Query and grammar language mismatch.
Trait Implementations§
Source§impl Clone for HighlightQueryErrorKind
impl Clone for HighlightQueryErrorKind
Source§fn clone(&self) -> HighlightQueryErrorKind
fn clone(&self) -> HighlightQueryErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HighlightQueryErrorKind
impl Debug for HighlightQueryErrorKind
Source§impl Display for HighlightQueryErrorKind
impl Display for HighlightQueryErrorKind
Source§impl From<QueryErrorKind> for HighlightQueryErrorKind
Available on crate feature runtime only.
impl From<QueryErrorKind> for HighlightQueryErrorKind
Available on crate feature
runtime only.Source§fn from(kind: QueryErrorKind) -> Self
fn from(kind: QueryErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HighlightQueryErrorKind
impl PartialEq for HighlightQueryErrorKind
Source§fn eq(&self, other: &HighlightQueryErrorKind) -> bool
fn eq(&self, other: &HighlightQueryErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HighlightQueryErrorKind
impl Eq for HighlightQueryErrorKind
impl StructuralPartialEq for HighlightQueryErrorKind
Auto Trait Implementations§
impl Freeze for HighlightQueryErrorKind
impl RefUnwindSafe for HighlightQueryErrorKind
impl Send for HighlightQueryErrorKind
impl Sync for HighlightQueryErrorKind
impl Unpin for HighlightQueryErrorKind
impl UnsafeUnpin for HighlightQueryErrorKind
impl UnwindSafe for HighlightQueryErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.