pub enum SvgError {
}Expand description
Errors from SVG Tiny PS validation.
Variants§
TooLarge(usize)
SVG exceeds 32KB size limit.
NotSvgRoot
Root element is not
MissingBaseProfile
Missing baseProfile=“tiny-ps” attribute.
MissingTitle
Missing
TitleTooLong(usize)
Title exceeds 65 characters.
CommaViewBox
viewBox uses comma delimiters instead of spaces.
NonSquareAspect
Non-square aspect ratio.
ProhibitedElement(String)
Prohibited element found.
EventHandler(String)
Event handler attribute found.
JavaScriptUri(String)
javascript: URI found.
EntityDeclaration
Entity declaration found (XXE prevention).
ExternalReference(String)
External reference found.
ParseError(String)
XML parsing error.
Trait Implementations§
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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