pub enum ReadNpzError {
Zip(ZipError),
Npy(ReadNpyError),
}
Expand description
An error reading a .npz
file.
Variants§
Zip(ZipError)
An error caused by the zip archive.
Npy(ReadNpyError)
An error caused by reading an inner .npy
file.
Trait Implementations§
Source§impl Debug for ReadNpzError
impl Debug for ReadNpzError
Source§impl Display for ReadNpzError
impl Display for ReadNpzError
Source§impl Error for ReadNpzError
impl Error for ReadNpzError
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<ReadNpyError> for ReadNpzError
impl From<ReadNpyError> for ReadNpzError
Source§fn from(err: ReadNpyError) -> ReadNpzError
fn from(err: ReadNpyError) -> ReadNpzError
Converts to this type from the input type.
Source§impl From<ZipError> for ReadNpzError
impl From<ZipError> for ReadNpzError
Source§fn from(err: ZipError) -> ReadNpzError
fn from(err: ZipError) -> ReadNpzError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadNpzError
impl !RefUnwindSafe for ReadNpzError
impl Send for ReadNpzError
impl Sync for ReadNpzError
impl Unpin for ReadNpzError
impl !UnwindSafe for ReadNpzError
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