Enum svgparser::Error
[−]
[src]
pub enum Error { UnexpectedEndOfStream(ErrorPos), InvalidChar { current: char, expected: char, pos: ErrorPos, }, InvalidSvgToken(ErrorPos), UnexpectedClosingTag(ErrorPos), InvalidNumber(ErrorPos), InvalidLength(ErrorPos), InvalidColor(ErrorPos), InvalidTransform(ErrorPos), InvalidAttributeValue(ErrorPos), InvalidAdvance { expected: isize, total: usize, pos: ErrorPos, }, Utf8Error(Utf8Error), }
List of all errors.
Variants
UnexpectedEndOfStream(ErrorPos)
The steam ended earlier than we expected.
Should only appear on invalid input data. Errors in the valid SVG should be handled by errors below.
InvalidChar
Can appear during consuming expected char.
Fields of InvalidChar
current: char | Current char in the stream. |
expected: char | Expected char. |
pos: ErrorPos | Absolute stream position. |
InvalidSvgToken(ErrorPos)
Invalid SVG token.
UnexpectedClosingTag(ErrorPos)
The stream found closing tag without an opening tag.
InvalidNumber(ErrorPos)
Error during a number parsing.
InvalidLength(ErrorPos)
Error during a length parsing.
InvalidColor(ErrorPos)
Error during a color parsing.
InvalidTransform(ErrorPos)
Error during a transform parsing.
InvalidAttributeValue(ErrorPos)
Invalid attribute value.
InvalidAdvance
Can appear during moving along the data stream.
Fields of InvalidAdvance
expected: isize | The advance step. |
total: usize | Full length of the steam. |
pos: ErrorPos | Absolute stream position. |
Utf8Error(Utf8Error)
UTF-8 processing error.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more