Enum gelatin::WidgetError
source · [−]pub enum WidgetError {
Image(ImageError),
Custom(Box<dyn Error>),
}
Variants
Image(ImageError)
Custom(Box<dyn Error>)
Trait Implementations
sourceimpl Debug for WidgetError
impl Debug for WidgetError
sourceimpl Display for WidgetError
impl Display for WidgetError
sourceimpl Error for WidgetError
impl Error for WidgetError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<ImageError> for WidgetError
impl From<ImageError> for WidgetError
sourcefn from(img_err: ImageError) -> WidgetError
fn from(img_err: ImageError) -> WidgetError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for WidgetError
impl !Send for WidgetError
impl !Sync for WidgetError
impl Unpin for WidgetError
impl !UnwindSafe for WidgetError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more