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

An error caused by I/O.

An error caused by parsing the file header.

An error issued by the element type when reading the data.

Overflow while computing the length of the array from the shape described in the file header.

Extra bytes are present between the end of the data and the end of the file.

An error caused by incorrect array length or dimensionality.

Trait Implementations

impl Debug for ReadNpyError
[src]

Formats the value using the given formatter. Read more

impl Display for ReadNpyError

Formats the value using the given formatter. Read more

impl Error for ReadNpyError

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for ReadNpyError

Performs the conversion.

impl From<ShapeError> for ReadNpyError

Performs the conversion.

impl From<ReadNpyError> for ReadNpzError

Performs the conversion.

Auto Trait Implementations