Struct svgdom::ParseOptions
[−]
[src]
pub struct ParseOptions { pub parse_comments: bool, pub parse_declarations: bool, pub parse_unknown_elements: bool, pub parse_unknown_attributes: bool, pub parse_px_unit: bool, pub skip_svg_elements: Vec<ElementId>, }
Options used during parsing.
Fields
parse_comments: bool
Add comment nodes to DOM during parsing.
parse_declarations: bool
Add declaration nodes to DOM during parsing.
parse_unknown_elements: bool
Add unknown elements to DOM during parsing.
All elements which is not defined in ElementId
are unknown.
parse_unknown_attributes: bool
Add unknown attributes to elements during parsing.
All attributes which is not defined in AttributeId
are unknown.
parse_px_unit: bool
px
unit in <length>
is rudimentary, since it is the same as none.
By default we parse it as is, but it can be disabled.
skip_svg_elements: Vec<ElementId>
Skip specified SVG elements and all their children during parsing.
Trait Implementations
impl Default for ParseOptions
[src]
fn default() -> ParseOptions
Returns the "default value" for a type. Read more