#[non_exhaustive]pub enum MalformedPath {
HasCubic,
TooSmall,
MissingMove,
UnequalNumberOfElements(Vec<usize>),
InconsistentPathElements(usize, Vec<&'static str>),
}Expand description
An error if an input curve is malformed
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HasCubic
TooSmall
MissingMove
UnequalNumberOfElements(Vec<usize>)
InconsistentPathElements(usize, Vec<&'static str>)
Trait Implementations§
Source§impl Clone for MalformedPath
impl Clone for MalformedPath
Source§fn clone(&self) -> MalformedPath
fn clone(&self) -> MalformedPath
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MalformedPath
impl RefUnwindSafe for MalformedPath
impl Send for MalformedPath
impl Sync for MalformedPath
impl Unpin for MalformedPath
impl UnwindSafe for MalformedPath
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§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.