pub enum PaintError {
ParseError(ReadError),
GlyphNotFound(GlyphId),
PaintCycleDetected,
DepthLimitExceeded,
}
Expand description
An error during drawing a COLR glyph.
This covers inconsistencies in the COLRv1 paint graph as well as downstream parse errors from read-fonts.
Variants§
Trait Implementations§
source§impl Clone for PaintError
impl Clone for PaintError
source§fn clone(&self) -> PaintError
fn clone(&self) -> PaintError
Returns a copy of the value. Read more
1.0.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 PaintError
impl Debug for PaintError
source§impl Display for PaintError
impl Display for PaintError
Auto Trait Implementations§
impl Freeze for PaintError
impl RefUnwindSafe for PaintError
impl Send for PaintError
impl Sync for PaintError
impl Unpin for PaintError
impl UnwindSafe for PaintError
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
)