pub enum SourceHighlighterError {
TextExtractionFailed(String),
PageReconstructionFailed(String),
WriteFailed(String),
}Expand description
Errors that can occur during source highlighting.
Variants§
TextExtractionFailed(String)
Failed to extract text from the PDF
PageReconstructionFailed(String)
Failed to reconstruct a page from the parsed PDF
WriteFailed(String)
Failed to write the output PDF
Trait Implementations§
Source§impl Debug for SourceHighlighterError
impl Debug for SourceHighlighterError
Source§impl Display for SourceHighlighterError
impl Display for SourceHighlighterError
Source§impl Error for SourceHighlighterError
impl Error for SourceHighlighterError
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()
Auto Trait Implementations§
impl Freeze for SourceHighlighterError
impl RefUnwindSafe for SourceHighlighterError
impl Send for SourceHighlighterError
impl Sync for SourceHighlighterError
impl Unpin for SourceHighlighterError
impl UnsafeUnpin for SourceHighlighterError
impl UnwindSafe for SourceHighlighterError
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