pub enum CompileErrorKind {
Syntax,
UnknownNodeKind,
UnknownField,
UnknownCapture,
ImpossiblePattern,
NoCaptures,
UnsupportedPredicate,
Other,
}Expand description
What is wrong with a query.
Variants§
Syntax
The query is not well-formed S-expression syntax.
UnknownNodeKind
A node kind the grammar does not define.
UnknownField
A field name the grammar does not define.
UnknownCapture
A predicate referenced a capture that the pattern does not bind.
ImpossiblePattern
The pattern is syntactically valid but structurally impossible.
NoCaptures
The query binds no captures, so a handler has nothing to reference.
UnsupportedPredicate
The query carries a predicate tree-sitter parses but never applies.
Other
The grammar rejected the query for a reason lanekeep does not model.
Trait Implementations§
Source§impl Clone for CompileErrorKind
impl Clone for CompileErrorKind
Source§fn clone(&self) -> CompileErrorKind
fn clone(&self) -> CompileErrorKind
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 moreimpl Copy for CompileErrorKind
Source§impl Debug for CompileErrorKind
impl Debug for CompileErrorKind
impl Eq for CompileErrorKind
Source§impl PartialEq for CompileErrorKind
impl PartialEq for CompileErrorKind
impl StructuralPartialEq for CompileErrorKind
Auto Trait Implementations§
impl Freeze for CompileErrorKind
impl RefUnwindSafe for CompileErrorKind
impl Send for CompileErrorKind
impl Sync for CompileErrorKind
impl Unpin for CompileErrorKind
impl UnsafeUnpin for CompileErrorKind
impl UnwindSafe for CompileErrorKind
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