pub enum HighlightError {
IoError(Error),
DirectoryCreationError(String),
FormattingError(String),
}Expand description
Errors that can occur during syntax highlighting
Variants§
IoError(Error)
I/O error during highlighting operations
DirectoryCreationError(String)
Failed to create required directories
FormattingError(String)
Error formatting highlighted output
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
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 From<Error> for HighlightError
impl From<Error> for HighlightError
Source§impl From<HighlightError> for Error
impl From<HighlightError> for Error
Source§fn from(err: HighlightError) -> Self
fn from(err: HighlightError) -> 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 !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