pub enum HighlightError {
Query(QueryError),
Highlight(Error),
Language(LanguageError),
Parse,
}Variants§
Trait Implementations§
Source§impl Debug for HighlightError
impl Debug for HighlightError
Source§impl Display for HighlightError
impl Display for HighlightError
Source§impl Error for HighlightError
impl Error for HighlightError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for HighlightError
impl From<Error> for HighlightError
Source§impl From<LanguageError> for HighlightError
impl From<LanguageError> for HighlightError
Source§fn from(source: LanguageError) -> Self
fn from(source: LanguageError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for HighlightError
impl From<QueryError> for HighlightError
Source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HighlightError
impl RefUnwindSafe for HighlightError
impl Send for HighlightError
impl Sync for HighlightError
impl Unpin for HighlightError
impl UnsafeUnpin for HighlightError
impl UnwindSafe for HighlightError
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