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]
impl Debug for ReadNpyError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ReadNpyError
impl Display for ReadNpyError
impl Error for ReadNpyError
impl Error for ReadNpyError
fn description(&self) -> &str
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for ReadNpyError
impl From<Error> for ReadNpyError
fn from(err: Error) -> ReadNpyError
fn from(err: Error) -> ReadNpyError
Performs the conversion.
impl From<ShapeError> for ReadNpyError
impl From<ShapeError> for ReadNpyError
fn from(err: ShapeError) -> ReadNpyError
fn from(err: ShapeError) -> ReadNpyError
Performs the conversion.
impl From<ReadNpyError> for ReadNpzError
impl From<ReadNpyError> for ReadNpzError
fn from(err: ReadNpyError) -> ReadNpzError
fn from(err: ReadNpyError) -> ReadNpzError
Performs the conversion.
Auto Trait Implementations
impl Send for ReadNpyError
impl Send for ReadNpyError
impl Sync for ReadNpyError
impl Sync for ReadNpyError