pub enum HighlightError {
UnsupportedLanguage(String),
ParseError(String),
}Expand description
Errors that can occur during highlighting.
Variants§
UnsupportedLanguage(String)
The requested language is not supported.
ParseError(String)
An error occurred during parsing.
Trait Implementations§
Source§impl Clone for HighlightError
impl Clone for HighlightError
Source§fn clone(&self) -> HighlightError
fn clone(&self) -> HighlightError
Returns a duplicate of the value. Read more
1.0.0 · 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 HighlightError
impl Debug for HighlightError
Source§impl Display for HighlightError
impl Display for HighlightError
Source§impl Error for HighlightError
impl Error for HighlightError
1.30.0 · 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 PartialEq for HighlightError
impl PartialEq for HighlightError
impl Eq for HighlightError
impl StructuralPartialEq for HighlightError
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