Enum usvg::Error [−][src]
pub enum Error { NotAnUtf8Str, MalformedGZip, ElementsLimitReached, InvalidSize, ParsingFailed(Error), }
Expand description
List of all errors.
Variants
Only UTF-8 content are supported.
Compressed SVG must use the GZip algorithm.
We do not allow SVG with more than 1_000_000 elements for security reasons.
SVG doesn’t have a valid size.
Occurs when width and/or height are <= 0.
Also occurs if width, height and viewBox are not set. This is against the SVG spec, but an automatic size detection is not supported yet.
ParsingFailed(Error)
Failed to parse an SVG data.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error