Struct tree_sitter::QueryError [−][src]
pub struct QueryError { pub row: usize, pub column: usize, pub offset: usize, pub message: String, pub kind: QueryErrorKind, }
Expand description
An error that occurred when trying to create a Query
.
Fields
row: usize
column: usize
offset: usize
message: String
kind: QueryErrorKind
Trait Implementations
impl Debug for QueryError
[src]
impl Debug for QueryError
[src]impl Display for QueryError
[src]
impl Display for QueryError
[src]impl Error for QueryError
[src]
impl Error for QueryError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl PartialEq<QueryError> for QueryError
[src]
impl PartialEq<QueryError> for QueryError
[src]fn eq(&self, other: &QueryError) -> bool
[src]
fn eq(&self, other: &QueryError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &QueryError) -> bool
[src]
fn ne(&self, other: &QueryError) -> bool
[src]This method tests for !=
.
impl Eq for QueryError
[src]
impl StructuralEq for QueryError
[src]
impl StructuralPartialEq for QueryError
[src]
Auto Trait Implementations
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnwindSafe for QueryError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more