pub enum ShapeParseError {
UnknownFunction(String),
MissingParameter(String),
InvalidNumber(String),
InvalidSyntax(String),
EmptyInput,
}Expand description
Error type for shape parsing failures
Variants§
UnknownFunction(String)
Unknown shape function — the string contains the unrecognized function name
MissingParameter(String)
Missing required parameter — the string names the expected parameter
InvalidNumber(String)
Invalid numeric value — the string contains the unparseable token
InvalidSyntax(String)
Invalid syntax — the string contains a description of what went wrong
EmptyInput
Empty input string was provided
Trait Implementations§
Source§impl Clone for ShapeParseError
impl Clone for ShapeParseError
Source§fn clone(&self) -> ShapeParseError
fn clone(&self) -> ShapeParseError
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 ShapeParseError
impl Debug for ShapeParseError
Source§impl Display for ShapeParseError
impl Display for ShapeParseError
Source§impl PartialEq for ShapeParseError
impl PartialEq for ShapeParseError
Source§fn eq(&self, other: &ShapeParseError) -> bool
fn eq(&self, other: &ShapeParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ShapeParseError
impl StructuralPartialEq for ShapeParseError
Auto Trait Implementations§
impl Freeze for ShapeParseError
impl RefUnwindSafe for ShapeParseError
impl Send for ShapeParseError
impl Sync for ShapeParseError
impl Unpin for ShapeParseError
impl UnsafeUnpin for ShapeParseError
impl UnwindSafe for ShapeParseError
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