Enum rasterize::SvgParserError
source · pub enum SvgParserError {
InvalidCmd {
offset: usize,
cmd: char,
},
InvalidScalar {
offset: usize,
},
InvalidFlag {
offset: usize,
flag: Option<char>,
},
UnexpectedSegmentType,
InvalidTransformOp {
offset: usize,
op: String,
},
InvalidBBox,
InvalidUnits {
offset: usize,
units: String,
},
InvalidFillRule,
BracketExpected {
offset: usize,
},
Json(Error),
IoError(Error),
}
Expand description
Error while parsing path in the SVG format
Variants§
InvalidCmd
Failed to parse SVG command
InvalidScalar
Failed to parse scalar value
InvalidFlag
Failed to parse flag value
UnexpectedSegmentType
Unexpected segment type found while parsing curve segment
InvalidTransformOp
Invalid transform operation
InvalidBBox
Invalid bounding box
InvalidUnits
Invalid (Angle|Gradient|Length)
InvalidFillRule
Invalid Fill Rule
BracketExpected
Bracket expected,
Json(Error)
JSON error
IoError(Error)
IO error propagated while reading input stream
Trait Implementations§
source§impl Debug for SvgParserError
impl Debug for SvgParserError
source§impl Display for SvgParserError
impl Display for SvgParserError
source§impl Error for SvgParserError
impl Error for SvgParserError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<Error> for SvgParserError
impl From<Error> for SvgParserError
source§impl From<Error> for SvgParserError
impl From<Error> for SvgParserError
source§impl From<SvgParserError> for Error
impl From<SvgParserError> for Error
source§fn from(error: SvgParserError) -> Self
fn from(error: SvgParserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SvgParserError
impl !RefUnwindSafe for SvgParserError
impl Send for SvgParserError
impl Sync for SvgParserError
impl Unpin for SvgParserError
impl !UnwindSafe for SvgParserError
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