pub enum InternalRenderingError {
Rendering(String),
LimitExceeded(ImplementationLimit),
InvalidTransform,
CircularReference(Node<NodeData>),
IdNotFound,
InvalidId(String),
OutOfMemory(String),
Cancelled,
}Expand description
Errors that can happen while rendering or measuring an SVG document.
This is the internal version of crate::api::RenderingError; they are the same
except that this one has an InvalidTransform variant which is only propagated
internally. It is caught during the drawing process, and the element in question
is simply not drawn, more or less per https://www.w3.org/TR/css-transforms-1/#transform-function-lists
“If a transform function causes the current transformation matrix of an object to be non-invertible, the object and its content do not get displayed.”
Variants§
Rendering(String)
An error from the rendering backend.
LimitExceeded(ImplementationLimit)
A particular implementation-defined limit was exceeded.
InvalidTransform
A non-invertible transform was generated.
This should not be a fatal error; we should catch it and just not render the problematic element.
CircularReference(Node<NodeData>)
IdNotFound
Tried to reference an SVG element that does not exist.
InvalidId(String)
Tried to reference an SVG element from a fragment identifier that is incorrect.
OutOfMemory(String)
Not enough memory was available for rendering.
Cancelled
The rendering was interrupted via a [gio::Cancellable].
Trait Implementations§
Source§impl Clone for InternalRenderingError
impl Clone for InternalRenderingError
Source§fn clone(&self) -> InternalRenderingError
fn clone(&self) -> InternalRenderingError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Display for InternalRenderingError
impl Display for InternalRenderingError
Source§impl From<DefsLookupErrorKind> for Box<InternalRenderingError>
impl From<DefsLookupErrorKind> for Box<InternalRenderingError>
Source§fn from(e: DefsLookupErrorKind) -> Box<InternalRenderingError>
fn from(e: DefsLookupErrorKind) -> Box<InternalRenderingError>
Source§impl From<DefsLookupErrorKind> for InternalRenderingError
impl From<DefsLookupErrorKind> for InternalRenderingError
Source§fn from(e: DefsLookupErrorKind) -> InternalRenderingError
fn from(e: DefsLookupErrorKind) -> InternalRenderingError
Source§impl From<Error> for Box<InternalRenderingError>
impl From<Error> for Box<InternalRenderingError>
Source§fn from(e: Error) -> Box<InternalRenderingError>
fn from(e: Error) -> Box<InternalRenderingError>
Source§impl From<Error> for InternalRenderingError
impl From<Error> for InternalRenderingError
Source§fn from(e: Error) -> InternalRenderingError
fn from(e: Error) -> InternalRenderingError
Source§impl From<InternalRenderingError> for FilterError
impl From<InternalRenderingError> for FilterError
Source§fn from(e: InternalRenderingError) -> Self
fn from(e: InternalRenderingError) -> Self
Source§impl From<InternalRenderingError> for RenderingError
impl From<InternalRenderingError> for RenderingError
Source§fn from(e: InternalRenderingError) -> RenderingError
fn from(e: InternalRenderingError) -> RenderingError
Source§impl From<InvalidTransform> for Box<InternalRenderingError>
impl From<InvalidTransform> for Box<InternalRenderingError>
Source§fn from(e: InvalidTransform) -> Box<InternalRenderingError>
fn from(e: InvalidTransform) -> Box<InternalRenderingError>
Source§impl From<InvalidTransform> for InternalRenderingError
impl From<InvalidTransform> for InternalRenderingError
Source§fn from(_: InvalidTransform) -> InternalRenderingError
fn from(_: InvalidTransform) -> InternalRenderingError
Auto Trait Implementations§
impl Freeze for InternalRenderingError
impl !RefUnwindSafe for InternalRenderingError
impl !Send for InternalRenderingError
impl !Sync for InternalRenderingError
impl Unpin for InternalRenderingError
impl !UnwindSafe for InternalRenderingError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.