pub enum SvgPathParseError {
EmptyPath,
UnexpectedChar {
pos: usize,
ch: char,
},
ExpectedNumber {
pos: usize,
},
InvalidArcFlag {
pos: usize,
},
}Expand description
Errors that can occur during SVG path parsing.
Variants§
EmptyPath
The path string is empty.
UnexpectedChar
Unexpected character encountered at the given byte offset.
ExpectedNumber
Expected a number but found something else.
InvalidArcFlag
Invalid arc flag (must be 0 or 1).
Trait Implementations§
Source§impl Clone for SvgPathParseError
impl Clone for SvgPathParseError
Source§fn clone(&self) -> SvgPathParseError
fn clone(&self) -> SvgPathParseError
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 SvgPathParseError
impl Debug for SvgPathParseError
Source§impl Display for SvgPathParseError
Human-readable error messages for SVG path parse failures.
impl Display for SvgPathParseError
Human-readable error messages for SVG path parse failures.
Source§impl PartialEq for SvgPathParseError
impl PartialEq for SvgPathParseError
Source§fn eq(&self, other: &SvgPathParseError) -> bool
fn eq(&self, other: &SvgPathParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SvgPathParseError
Auto Trait Implementations§
impl Freeze for SvgPathParseError
impl RefUnwindSafe for SvgPathParseError
impl Send for SvgPathParseError
impl Sync for SvgPathParseError
impl Unpin for SvgPathParseError
impl UnsafeUnpin for SvgPathParseError
impl UnwindSafe for SvgPathParseError
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