pub enum Error {
FileTypeUnkown(String),
ParseError(String),
GrammarLoad(&'static str, LanguageError),
InvalidQuery(&'static str, QueryError),
NoSuchResultsForFilter,
NoResultsForSearch,
}
Expand description
Errors that we may give back.
Variants§
FileTypeUnkown(String)
If there is no language that has this file extension or the file does not have a file extension.
ParseError(String)
If tree sitter fails to parse the file.
GrammarLoad(&'static str, LanguageError)
If tree sitter doesn’t like the grammer for given language
InvalidQuery(&'static str, QueryError)
If tree sitter doesn’t like the query from a given SupportedLanguage.
NoSuchResultsForFilter
If there are no result after filtering.
NoResultsForSearch
If there are no result after searching.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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