Enum svgdom::ErrorKind []

pub enum ErrorKind {
    Msg(String),
    Xml(ErrorKind),
    ElementMustHaveAnId,
    ElementCrosslink,
    NoSvgElement,
    EmptyDocument,
    UnsupportedCSS(ErrorPos),
    InvalidCSS(ErrorPos),
    UnsupportedEntity(ErrorPos),
    UnsupportedPaintFallback(String),
    BrokenFuncIri(String),
    InvalidEncoding,
    MissingAttribute(StringString),
    CssError(Error),
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

svgparser errors

If you want to use referenced element inside link attribute, such element must have a non-empty ID.

Linked nodes can't reference each other or itself.

Examples

<linearGradient id="lg1" xlink:href="#lg2"/>
<linearGradient id="lg2" xlink:href="#lg1"/>

or

<linearGradient id="lg1" xlink:href="#lg1"/>

Parsed document must have an svg element.

Parsed document must have at least one node.

libsvgdom didn't support most of the CSS2 spec.

Error during parsing of the CSS2.

ENTITY with XML Element data is not supported.

We don't support a <paint> type with a fallback value and a valid FuncIRI.

Examples

<linearGradient id="lg1"/>
<rect fill="url(#lg1) red"/>

We don't support use elements with a broken filter attribute.

UTF-8 processing error.

Failed to find an attribute, which must be set, during post-processing.

simplecss errors.

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for ErrorKind

Formats the value using the given formatter.

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl From<ErrorKind> for ErrorKind

svgparser errors

Performs the conversion.

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.