pub enum PdfVdiffError {
FileNotFound(PathBuf),
OutputFileExists(PathBuf),
PdfOpen {
path: PathBuf,
reason: String,
},
PasswordProtected(PathBuf),
NoTextLayer(PathBuf),
PageCountExceeded(usize, usize),
InvalidDimensions {
path: PathBuf,
reason: String,
},
OutputIo {
path: PathBuf,
source: Error,
},
Render(String),
}Expand description
Comprehensive error type for all core pdf-vdiff operations.
Variants§
FileNotFound(PathBuf)
OutputFileExists(PathBuf)
PdfOpen
PasswordProtected(PathBuf)
NoTextLayer(PathBuf)
PageCountExceeded(usize, usize)
InvalidDimensions
OutputIo
Render(String)
Trait Implementations§
Source§impl Debug for PdfVdiffError
impl Debug for PdfVdiffError
Source§impl Display for PdfVdiffError
impl Display for PdfVdiffError
Source§impl Error for PdfVdiffError
impl Error for PdfVdiffError
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 !RefUnwindSafe for PdfVdiffError
impl !UnwindSafe for PdfVdiffError
impl Freeze for PdfVdiffError
impl Send for PdfVdiffError
impl Sync for PdfVdiffError
impl Unpin for PdfVdiffError
impl UnsafeUnpin for PdfVdiffError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more