Enum kurbo::SvgParseError
source · #[non_exhaustive]pub enum SvgParseError {
Wrong,
UnexpectedEof,
UnknownCommand(char),
UninitializedPath,
}
Expand description
An error which can be returned when parsing an SVG.
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.
Wrong
A number was expected.
UnexpectedEof
The input string ended while still expecting input.
UnknownCommand(char)
Encountered an unknown command letter.
UninitializedPath
Encountered a command that precedes expected ‘moveto’ command.
Trait Implementations§
source§impl Debug for SvgParseError
impl Debug for SvgParseError
source§impl Display for SvgParseError
impl Display for SvgParseError
source§impl Error for SvgParseError
Available on crate feature std
only.
impl Error for SvgParseError
Available on crate feature
std
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SvgParseError
impl RefUnwindSafe for SvgParseError
impl Send for SvgParseError
impl Sync for SvgParseError
impl Unpin for SvgParseError
impl UnwindSafe for SvgParseError
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