Struct svgdom::ParseOptions
source · pub struct ParseOptions {
pub skip_unresolved_classes: bool,
pub skip_invalid_attributes: bool,
pub skip_invalid_css: bool,
}
Expand description
Options that defines SVG parsing.
Fields
skip_unresolved_classes: bool
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_invalid_attributes: bool
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_css: bool
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
sourceimpl Debug for ParseOptions
impl Debug for ParseOptions
sourceimpl Default for ParseOptions
impl Default for ParseOptions
sourcefn default() -> ParseOptions
fn default() -> ParseOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnwindSafe for ParseOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more