Enum ndarray_npy::ReadNpyError
[−]
pub enum ReadNpyError { Io(Error), HeaderParse(HeaderParseError), ReadableElement(Box<Error + Send + Sync>), LengthOverflow, ExtraBytes, Shape(ShapeError), }
An error reading a .npy
file.
Variants
Io(Error)
An error caused by I/O.
HeaderParse(HeaderParseError)
An error caused by parsing the file header.
ReadableElement(Box<Error + Send + Sync>)
An error issued by the element type when reading the data.
LengthOverflow
Overflow while computing the length of the array from the shape described in the file header.
ExtraBytes
Extra bytes are present between the end of the data and the end of the file.
Shape(ShapeError)
An error caused by incorrect array length or dimensionality.
Trait Implementations
impl Debug for ReadNpyError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for ReadNpyError
impl Error for ReadNpyError
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for ReadNpyError
fn from(err: Error) -> ReadNpyError
Performs the conversion.
impl From<ShapeError> for ReadNpyError
fn from(err: ShapeError) -> ReadNpyError
Performs the conversion.
impl From<ReadNpyError> for ReadNpzError
fn from(err: ReadNpyError) -> ReadNpzError
Performs the conversion.