pub enum ImageEmbedError {
PngFeatureDisabled,
DecodeFailed,
}Variants§
PngFeatureDisabled
The document contains a PNG but the crate was built without the
png feature — there is no decoder available to split out alpha.
DecodeFailed
The png crate rejected the data at decode time (should be rare:
lightweight-pdf-core::Image::new already validated the header).
Trait Implementations§
Source§impl Debug for ImageEmbedError
impl Debug for ImageEmbedError
Source§impl Display for ImageEmbedError
impl Display for ImageEmbedError
Source§impl From<ImageEmbedError> for RenderError
impl From<ImageEmbedError> for RenderError
Source§fn from(e: ImageEmbedError) -> Self
fn from(e: ImageEmbedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImageEmbedError
impl RefUnwindSafe for ImageEmbedError
impl Send for ImageEmbedError
impl Sync for ImageEmbedError
impl Unpin for ImageEmbedError
impl UnsafeUnpin for ImageEmbedError
impl UnwindSafe for ImageEmbedError
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