pub enum ReadImageError {
ImageError(ImageError),
ConvertError(FromDataError),
}
Expand description
Errors reported when creating a tensor from an image.
Variants§
ImageError(ImageError)
The image could not be loaded.
ConvertError(FromDataError)
The loaded image could not be converted to a tensor.
Trait Implementations§
Source§impl Debug for ReadImageError
impl Debug for ReadImageError
Source§impl Display for ReadImageError
impl Display for ReadImageError
Source§impl Error for ReadImageError
impl Error for ReadImageError
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()
Auto Trait Implementations§
impl Freeze for ReadImageError
impl !RefUnwindSafe for ReadImageError
impl Send for ReadImageError
impl Sync for ReadImageError
impl Unpin for ReadImageError
impl !UnwindSafe for ReadImageError
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