pub enum PathErrorKind {
EllipticalArc(char),
MultipleSubpaths,
UnknownCommand(char),
MissingMoveTo,
ExpectedNumber,
UnexpectedOperand,
Degenerate,
}Expand description
What was wrong with a [path] d string.
Variants§
EllipticalArc(char)
The elliptical-arc command, which the subset excludes.
MultipleSubpaths
A second M/m — the path has more than one subpath.
UnknownCommand(char)
A letter that is not a path command at all.
MissingMoveTo
The string did not begin with a moveto.
ExpectedNumber
A command needed another coordinate and the string ran out, or held something that is not a number.
UnexpectedOperand
Operands appeared where no command could repeat them — a number after
Z, or before any command.
Degenerate
The path parsed but encloses no area: fewer than three distinct points, or every point on one spot.
Trait Implementations§
Source§impl Clone for PathErrorKind
impl Clone for PathErrorKind
Source§fn clone(&self) -> PathErrorKind
fn clone(&self) -> PathErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PathErrorKind
impl Debug for PathErrorKind
Source§impl PartialEq for PathErrorKind
impl PartialEq for PathErrorKind
Source§fn eq(&self, other: &PathErrorKind) -> bool
fn eq(&self, other: &PathErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PathErrorKind
impl StructuralPartialEq for PathErrorKind
Auto Trait Implementations§
impl Freeze for PathErrorKind
impl RefUnwindSafe for PathErrorKind
impl Send for PathErrorKind
impl Sync for PathErrorKind
impl Unpin for PathErrorKind
impl UnsafeUnpin for PathErrorKind
impl UnwindSafe for PathErrorKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.