Enum resvg::resvg_error
source · #[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§
source§impl Clone for resvg_error
impl Clone for resvg_error
source§fn clone(&self) -> resvg_error
fn clone(&self) -> resvg_error
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more