Enum rsvg::error::InternalRenderingError
source · 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 InternalRenderingError
impl From<DefsLookupErrorKind> for InternalRenderingError
source§fn from(e: DefsLookupErrorKind) -> InternalRenderingError
fn from(e: DefsLookupErrorKind) -> 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 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.