Enum read_fonts::tables::glyf::ToPathError
source · pub enum ToPathError {
ContourOrder(usize),
ExpectedQuad(usize),
ExpectedQuadOrOnCurve(usize),
ExpectedCubic(usize),
PointFlagMismatch {
num_points: usize,
num_flags: usize,
},
}
Expand description
Errors that can occur when converting an outline to a path.
Variants§
ContourOrder(usize)
Contour end point at this index was less than its preceding end point.
ExpectedQuad(usize)
Expected a quadratic off-curve point at this index.
ExpectedQuadOrOnCurve(usize)
Expected a quadratic off-curve or on-curve point at this index.
ExpectedCubic(usize)
Expected a cubic off-curve point at this index.
PointFlagMismatch
Expected number of points to == number of flags
Trait Implementations§
source§impl Clone for ToPathError
impl Clone for ToPathError
source§fn clone(&self) -> ToPathError
fn clone(&self) -> ToPathError
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 ToPathError
impl Debug for ToPathError
Auto Trait Implementations§
impl Freeze for ToPathError
impl RefUnwindSafe for ToPathError
impl Send for ToPathError
impl Sync for ToPathError
impl Unpin for ToPathError
impl UnwindSafe for ToPathError
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