pub enum SvgPathError {
UnsupportedCommand(char),
UnexpectedChar(char),
InvalidNumber,
Truncated,
NotStartedWithMove,
}Expand description
Reasons the path data could not be lowered to a Path.
Variants§
UnsupportedCommand(char)
A command letter outside the supported set (currently arcs).
UnexpectedChar(char)
A command was expected but the input ended (or contained a non-command, non-whitespace, non-digit character at top level).
InvalidNumber
A numeric argument could not be parsed.
Truncated
A command had too few arguments (e.g. M 1 with no y).
NotStartedWithMove
The path data did not start with a move-to (M / m). Other
commands implicitly need a current point and the SVG spec
requires M / m to be the first command.
Trait Implementations§
Source§impl Clone for SvgPathError
impl Clone for SvgPathError
Source§fn clone(&self) -> SvgPathError
fn clone(&self) -> SvgPathError
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 SvgPathError
impl Debug for SvgPathError
Source§impl PartialEq for SvgPathError
impl PartialEq for SvgPathError
impl StructuralPartialEq for SvgPathError
Auto Trait Implementations§
impl Freeze for SvgPathError
impl RefUnwindSafe for SvgPathError
impl Send for SvgPathError
impl Sync for SvgPathError
impl Unpin for SvgPathError
impl UnsafeUnpin for SvgPathError
impl UnwindSafe for SvgPathError
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