#[non_exhaustive]pub enum SvgError {
InvalidSyntax,
InvalidElement,
InvalidAttribute,
MissingAttribute,
InvalidReference,
FailedUpdate,
FailedRendering,
IgnoredElement,
LimitsExceeded,
NotImplemented,
}v4_22 only.Expand description
Error codes in the GTK_SVG_ERROR domain for errors
that happen during parsing or rendering of SVG.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidSyntax
The XML syntax is broken in some way
InvalidElement
An XML element is invalid (either because it is not part of SVG, or because it is in the wrong place, or because it not implemented in GTK)
InvalidAttribute
An attribute is invalid (either because it is not part of SVG, or because it is not implemented in GTK, or its value is problematic)
MissingAttribute
A required attribute is missing
InvalidReference
A reference does not point to a suitable element
FailedUpdate
An animation could not be updated
FailedRendering
Rendering is not according to expecations
IgnoredElement
An XML element is ignored, but it should not affect rendering (this error code is used for metadata and exension elements)
LimitsExceeded
An implementation limit has been hit, such as the number of loaded shapes.
NotImplemented
The SVG uses features that
are not supported by Svg. It may be advisable to use
a different SVG renderer.
Implementations§
Trait Implementations§
Source§impl ErrorDomain for SvgError
impl ErrorDomain for SvgError
Source§impl<'a> FromValue<'a> for SvgError
impl<'a> FromValue<'a> for SvgError
Source§type Checker = GenericValueTypeChecker<SvgError>
type Checker = GenericValueTypeChecker<SvgError>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for SvgError
impl HasParamSpec for SvgError
Source§impl Ord for SvgError
impl Ord for SvgError
Source§impl PartialOrd for SvgError
impl PartialOrd for SvgError
Source§impl StaticType for SvgError
impl StaticType for SvgError
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl Copy for SvgError
impl Eq for SvgError
impl StructuralPartialEq for SvgError
Auto Trait Implementations§
impl Freeze for SvgError
impl RefUnwindSafe for SvgError
impl Send for SvgError
impl Sync for SvgError
impl Unpin for SvgError
impl UnsafeUnpin for SvgError
impl UnwindSafe for SvgError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.