Enum resvg::resvg_error
source · #[repr(C)]pub enum resvg_error {
OK = 0,
NOT_AN_UTF8_STR = 1,
FILE_OPEN_FAILED = 2,
MALFORMED_GZIP = 3,
ELEMENTS_LIMIT_REACHED = 4,
INVALID_SIZE = 5,
PARSING_FAILED = 6,
}
Expand description
@brief List of possible errors.
Variants§
OK = 0
Everything is ok.
NOT_AN_UTF8_STR = 1
Only UTF-8 content are supported.
FILE_OPEN_FAILED = 2
Failed to open the provided file.
MALFORMED_GZIP = 3
Compressed SVG must use the GZip algorithm.
ELEMENTS_LIMIT_REACHED = 4
We do not allow SVG with more than 1_000_000 elements for security reasons.
INVALID_SIZE = 5
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 = 6
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 moreimpl Copy for resvg_error
Auto Trait Implementations§
impl Freeze for resvg_error
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more