Enum resvg::resvg_error [−][src]
#[repr(C)]
pub enum resvg_error {
OK,
NOT_AN_UTF8_STR,
FILE_OPEN_FAILED,
MALFORMED_GZIP,
ELEMENTS_LIMIT_REACHED,
INVALID_SIZE,
PARSING_FAILED,
}Expand description
@brief List of possible errors.
Variants
OK
Everything is ok.
NOT_AN_UTF8_STR
Only UTF-8 content are supported.
FILE_OPEN_FAILED
Failed to open the provided file.
MALFORMED_GZIP
Compressed SVG must use the GZip algorithm.
ELEMENTS_LIMIT_REACHED
We do not allow SVG with more than 1_000_000 elements for security reasons.
INVALID_SIZE
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.
PARSING_FAILED
Failed to parse an SVG data.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for resvg_error
impl Send for resvg_error
impl Sync for resvg_error
impl Unpin for resvg_error
impl UnwindSafe for resvg_error
Blanket Implementations
Mutably borrows from an owned value. Read more