pub enum PConvertError {
ArgumentError(String),
UnsupportedImageTypeError,
IOError(Error),
ImageLibError(ImageError),
}
Expand description
Error types used across this crate.
Variants§
Trait Implementations§
Source§impl Debug for PConvertError
impl Debug for PConvertError
Source§impl Display for PConvertError
impl Display for PConvertError
Source§impl Error for PConvertError
impl Error for PConvertError
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<Error> for PConvertError
impl From<Error> for PConvertError
Source§fn from(err: Error) -> PConvertError
fn from(err: Error) -> PConvertError
Converts to this type from the input type.
Source§impl From<ImageError> for PConvertError
impl From<ImageError> for PConvertError
Source§fn from(err: ImageError) -> PConvertError
fn from(err: ImageError) -> PConvertError
Converts to this type from the input type.
Source§impl From<PConvertError> for JsValue
impl From<PConvertError> for JsValue
Source§fn from(err: PConvertError) -> JsValue
fn from(err: PConvertError) -> JsValue
Converts to this type from the input type.
Source§impl From<PConvertError> for PyErr
impl From<PConvertError> for PyErr
Source§fn from(err: PConvertError) -> PyErr
fn from(err: PConvertError) -> PyErr
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PConvertError
impl !RefUnwindSafe for PConvertError
impl Send for PConvertError
impl Sync for PConvertError
impl Unpin for PConvertError
impl !UnwindSafe for PConvertError
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