Struct freya_engine::prelude::svg::LoadError
pub struct LoadError;
Expand description
Error when something goes wrong when loading an SVG file. Sadly, Skia doesn’t give further
details so we can’t return a more expressive error type, but we still use this instead of
Option
to express the intent and allow for Try
.
Trait Implementations§
§impl Error for LoadError
impl Error for LoadError
§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
§impl Ord for LoadError
impl Ord for LoadError
§impl PartialOrd for LoadError
impl PartialOrd for LoadError
§fn partial_cmp(&self, other: &LoadError) -> Option<Ordering>
fn partial_cmp(&self, other: &LoadError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LoadError
impl Eq for LoadError
impl StructuralPartialEq for LoadError
Auto Trait Implementations§
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnwindSafe for LoadError
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