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

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.

Can appear during consuming expected char.

Fields of InvalidChar

Current char in the stream.

Expected char.

Absolute stream position.

Invalid SVG token.

The stream found closing tag without an opening tag.

Error during a number parsing.

Error during a length parsing.

Error during a color parsing.

Error during a transform parsing.

Invalid attribute value.

Can appear during moving along the data stream.

Fields of InvalidAdvance

The advance step.

Full length of the steam.

Absolute stream position.

UTF-8 processing error.

Trait Implementations

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl PartialEq for Error
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl From<Utf8Error> for Error
[src]

[src]

Performs the conversion.