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
source§impl Display for ToPathError
impl Display for ToPathError
source§impl From<ToPathError> for DrawError
impl From<ToPathError> for DrawError
source§fn from(e: ToPathError) -> Self
fn from(e: ToPathError) -> Self
Converts to this type from the input type.
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
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
)