Enum svgdom::Error
[−]
[src]
pub enum Error { ElementMustHaveAnId, ElementCrosslink, ParseError(ParseError), NoSvgElement, EmptyDocument, UnsupportedCSS(ErrorPos), InvalidCSS(ErrorPos), UnsupportedEntity(ErrorPos), UnsupportedPaintFallback(String), BrokenFuncIri(String), }
List of all errors that can occur during processing of SVG DOM.
Variants
ElementMustHaveAnId
If you want to use referenced element inside link attribute, such element must have an non-empty ID.
ElementCrosslink
A linked nodes can't reference each other.
Example:
<linearGradient id="lg1" xlink:href="#lg2"/> <linearGradient id="lg2" xlink:href="#lg1"/>
ParseError(ParseError)
Error from libsvgparser.
NoSvgElement
Parsed document must have an svg
element.
EmptyDocument
Parsed document must have at least one node.
UnsupportedCSS(ErrorPos)
libsvgdom didn't support most of the CSS2 spec.
InvalidCSS(ErrorPos)
Error during parsing of the CSS2.
UnsupportedEntity(ErrorPos)
ENTITY with XML Element data is not supported.
UnsupportedPaintFallback(String)
We don't support a <paint> type with a fallback value and a valid FuncIRI.
Example:
<linearGradient id="lg1"/> <rect fill="url(#lg1) red"/>
BrokenFuncIri(String)
We don't support 'use' elements with broken filter attribute.
Trait Implementations
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.