[][src]Enum rsvg_internals::RenderingError

pub enum RenderingError {
    Cairo(Status),
    CircularReference,
    InstancingLimit,
    InvalidId(DefsLookupErrorKind),
    InvalidHref,
    OutOfMemory,
    HandleIsNotLoaded,
}

Errors that can happen while rendering or measuring an SVG document.

Variants

Cairo(Status)

A Cairo error happened during rendering.

CircularReference

There is a circular reference between elements.

InstancingLimit

The maximum number of rendered objects was reached.

Librsvg has a limit on the number of rendered objects, so that malicious files cannot consume CPU time arbitrarily.

InvalidId(DefsLookupErrorKind)

Tried to reference an SVG element from a fragment identifier that is incorrect.

InvalidHref
OutOfMemory

Not enough memory was available for rendering.

HandleIsNotLoaded

Cannot occur from librsvg_crate; this is just for the C API.

Trait Implementations

impl Clone for RenderingError[src]

impl Debug for RenderingError[src]

impl Display for RenderingError[src]

impl Error for RenderingError[src]

impl From<RenderingError> for FilterError[src]

impl From<Status> for RenderingError[src]

impl PartialEq<RenderingError> for RenderingError[src]

impl StructuralPartialEq for RenderingError[src]

Auto Trait Implementations

impl RefUnwindSafe for RenderingError

impl Send for RenderingError

impl Sync for RenderingError

impl Unpin for RenderingError

impl UnwindSafe for RenderingError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,