Struct svgdom::ParseOptions[][src]

pub struct ParseOptions {
    pub skip_unresolved_classes: bool,
    pub skip_invalid_attributes: bool,
    pub skip_invalid_css: bool,
}

Options that defines SVG parsing.

Fields

Skip unresolved references inside the class attribute.

It's enabled by default, but if you disable it - all unresolved classes will be kept in the class attribute.

Default: true

Skip attributes with invalid values.

By default, attribute with an invalid value will lead to a parsing error. This flag allows converting this error into a warning.

Default: false

Skip invalid/unsupported CSS.

By default, CSS with an invalid/unsupported value will lead to a parsing error. This flag allows converting this error into a warning.

Default: false

Trait Implementations

impl Debug for ParseOptions
[src]

Formats the value using the given formatter. Read more

impl Default for ParseOptions
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations