pub enum Error {
Font(&'static str),
FontLicense(&'static str),
Image(&'static str),
Unsupported(&'static str),
Invalid(&'static str),
}Variants§
Font(&'static str)
the font file cannot be used: damaged, or a kind not taken
FontLicense(&'static str)
the font’s licence (OS/2 fsType) does not allow embedding
Image(&'static str)
image data that does not fit what it claims
Unsupported(&'static str)
valid input this writer does not handle (CFF2 fonts, arithmetic-coded JPEG, …)
Invalid(&'static str)
the document cannot be written as it is (no pages, a link to a page it lacks, …)
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Errorwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Errorwhere
&'static str: UnwindSafe,
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