pub enum ImgProcError {
Show 13 variants
InvalidImageShape {
expected_rank: usize,
got: Vec<usize>,
},
InvalidChannelCount {
expected: usize,
got: usize,
},
InvalidSize {
height: usize,
width: usize,
},
InvalidNormalizationParams {
expected_channels: usize,
mean_len: usize,
std_len: usize,
},
ZeroStdAtChannel {
channel: usize,
},
InvalidBlockSize {
block_size: usize,
},
InvalidOutputDimensions {
out_h: usize,
out_w: usize,
},
ShapeMismatch {
expected: Vec<usize>,
got: Vec<usize>,
},
Io {
message: String,
},
UnsupportedFormat {
path: String,
},
ImageDecode {
message: String,
},
ImageEncode {
message: String,
},
Tensor(TensorError),
}Variants§
InvalidImageShape
InvalidChannelCount
InvalidSize
InvalidNormalizationParams
ZeroStdAtChannel
InvalidBlockSize
InvalidOutputDimensions
ShapeMismatch
Io
UnsupportedFormat
ImageDecode
ImageEncode
Tensor(TensorError)
Trait Implementations§
Source§impl Clone for ImgProcError
impl Clone for ImgProcError
Source§fn clone(&self) -> ImgProcError
fn clone(&self) -> ImgProcError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImgProcError
impl Debug for ImgProcError
Source§impl Display for ImgProcError
impl Display for ImgProcError
Source§impl Error for ImgProcError
impl Error for ImgProcError
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<TensorError> for ImgProcError
impl From<TensorError> for ImgProcError
Source§fn from(source: TensorError) -> Self
fn from(source: TensorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImgProcError
impl PartialEq for ImgProcError
impl Eq for ImgProcError
impl StructuralPartialEq for ImgProcError
Auto Trait Implementations§
impl Freeze for ImgProcError
impl RefUnwindSafe for ImgProcError
impl Send for ImgProcError
impl Sync for ImgProcError
impl Unpin for ImgProcError
impl UnsafeUnpin for ImgProcError
impl UnwindSafe for ImgProcError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more