pub enum SvgErrorKind {
InvalidContext,
InvalidDocument,
InvalidViewport,
UnsupportedSelector,
ResourceLimit,
UnsupportedFitText,
EmptyBounds,
ArithmeticOverflow,
UnbalancedBlock,
Serialization,
Other,
}Expand description
Machine-readable category for an SvgError.
Variants§
InvalidContext
Render context configuration failed validation.
InvalidDocument
Input Plotter-IR document failed structural or semantic validation.
InvalidViewport
Explicit or fitted viewport had invalid or non-positive dimensions.
UnsupportedSelector
Layer or style selector pattern is unsupported.
ResourceLimit
Document or output exceeded a configured resource limit.
UnsupportedFitText
Uncached text prevented exact fit-bounds computation when disallowed.
EmptyBounds
Fit-to-content requested on a document with no visible geometry.
ArithmeticOverflow
Coordinate or extent arithmetic overflowed integer bounds.
UnbalancedBlock
Plotter-IR StartBlock / EndBlock nesting was unbalanced.
Serialization
SVG/XML serialization rejected invalid characters or control bytes.
Other
Uncategorized internal rendering failure.
Trait Implementations§
Source§impl Clone for SvgErrorKind
impl Clone for SvgErrorKind
Source§fn clone(&self) -> SvgErrorKind
fn clone(&self) -> SvgErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SvgErrorKind
Source§impl Debug for SvgErrorKind
impl Debug for SvgErrorKind
impl Eq for SvgErrorKind
Source§impl PartialEq for SvgErrorKind
impl PartialEq for SvgErrorKind
impl StructuralPartialEq for SvgErrorKind
Auto Trait Implementations§
impl Freeze for SvgErrorKind
impl RefUnwindSafe for SvgErrorKind
impl Send for SvgErrorKind
impl Sync for SvgErrorKind
impl Unpin for SvgErrorKind
impl UnsafeUnpin for SvgErrorKind
impl UnwindSafe for SvgErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.