pub enum Error {
Bytemuck(PodCastError),
Glob(Error),
Io(Error),
Image(ImageError),
InvalidAscii(String),
InvalidCameraModelId(u32),
InvalidKind(String),
InvalidUtf8(String),
MismatchedTensorShape(Vec<usize>, Vec<usize>),
MissingSymbol(String),
OutOfBounds(usize, usize, String),
ParseIntError(ParseIntError),
}
Expand description
Error variants.
Variants§
Bytemuck(PodCastError)
Error from the bytemuck
crate.
Glob(Error)
Error from the globset
crate.
Io(Error)
Error from the image
crate.
Image(ImageError)
Error from the image
crate.
InvalidAscii(String)
Error from the invalid ASCII string.
InvalidCameraModelId(u32)
Error from the invalid camera model id.
InvalidKind(String)
Error from the invalid camera model name.
InvalidUtf8(String)
Error from the invalid UTF-8 string.
MismatchedTensorShape(Vec<usize>, Vec<usize>)
Error from the mismatched tensor shape.
MissingSymbol(String)
Error from the missing symbol.
It generally comes from the decoding process.
OutOfBounds(usize, usize, String)
Error from the out of bounds.
ParseIntError(ParseIntError)
Error from the std::num::ParseIntError
.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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> 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