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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.