pub enum ConversionError {
InvalidImage,
MissingGlyphs,
TooMuchNesting,
UnknownError,
SubsetError(ID),
InvalidFont(ID),
}
Expand description
A error that can appear during conversion.
Variants§
InvalidImage
The SVG image contains an unrecognized type of image.
MissingGlyphs
Text shaping resulted in a .notdef glyph. Can only occur if PDF/A processing is enabled.
TooMuchNesting
Converting the SVG would require too much nesting depth.
UnknownError
An unknown error occurred during the conversion. This could indicate a bug in the svg2pdf.
SubsetError(ID)
An error occurred while subsetting a font.
InvalidFont(ID)
An error occurred while reading a font.
Trait Implementations§
source§impl Clone for ConversionError
impl Clone for ConversionError
source§fn clone(&self) -> ConversionError
fn clone(&self) -> ConversionError
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConversionError
impl Debug for ConversionError
source§impl Display for ConversionError
impl Display for ConversionError
impl Copy for ConversionError
Auto Trait Implementations§
impl Freeze for ConversionError
impl RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl UnwindSafe for ConversionError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)