Enum ndarray_npz::ViewNpzError
source · #[non_exhaustive]
pub enum ViewNpzError {
Zip(ZipError),
Npy(ViewNpyError),
MovedNpyViewMut,
Directory,
CompressedFile,
EncryptedFile,
}
Expand description
An error viewing a .npz
file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Zip(ZipError)
An error caused by the zip archive.
Npy(ViewNpyError)
An error caused by viewing an inner .npy
file.
MovedNpyViewMut
A mutable .npy
file view has already been moved out of its .npz
file view.
Directory
Directories cannot be viewed.
CompressedFile
Compressed files cannot be viewed.
EncryptedFile
Encrypted files cannot be viewed.
Trait Implementations§
source§impl Debug for ViewNpzError
impl Debug for ViewNpzError
source§impl Display for ViewNpzError
impl Display for ViewNpzError
source§impl Error for ViewNpzError
impl Error for ViewNpzError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ViewNpyError> for ViewNpzError
impl From<ViewNpyError> for ViewNpzError
source§fn from(err: ViewNpyError) -> ViewNpzError
fn from(err: ViewNpyError) -> ViewNpzError
Converts to this type from the input type.
source§impl From<ZipError> for ViewNpzError
impl From<ZipError> for ViewNpzError
source§fn from(err: ZipError) -> ViewNpzError
fn from(err: ZipError) -> ViewNpzError
Converts to this type from the input type.