pub enum MetadataError {
Missing,
Format {
found: String,
known: u32,
},
Unreadable(String),
}Expand description
Why an SVG’s metadata could not be read back.
Variants§
Missing
No <section-view> element: this SVG was not written by write(), or
an editor dropped its <metadata>.
Format
Written by another format of the metadata.
Unreadable(String)
The element is there and its JSON does not read.
Trait Implementations§
Source§impl Clone for MetadataError
impl Clone for MetadataError
Source§impl Debug for MetadataError
impl Debug for MetadataError
Source§impl Display for MetadataError
impl Display for MetadataError
Source§impl Error for MetadataError
impl Error for MetadataError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<MetadataError> for RedrawError
impl From<MetadataError> for RedrawError
Source§fn from(source: MetadataError) -> Self
fn from(source: MetadataError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MetadataError
impl PartialEq for MetadataError
impl StructuralPartialEq for MetadataError
Auto Trait Implementations§
impl Freeze for MetadataError
impl RefUnwindSafe for MetadataError
impl Send for MetadataError
impl Sync for MetadataError
impl Unpin for MetadataError
impl UnsafeUnpin for MetadataError
impl UnwindSafe for MetadataError
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