[][src]Enum ndarray_npy::ReadNpyError

pub enum ReadNpyError {
    Io(Error),
    ParseHeader(ParseHeaderError),
    ParseData(Box<dyn Error + Send + Sync + 'static>),
    LengthOverflow,
    WrongNdim(Option<usize>, usize),
    WrongDescriptor(PyValue),
    MissingData,
    ExtraBytes(usize),
}

An error reading a .npy file.

Variants

Io(Error)

An error caused by I/O.

ParseHeader(ParseHeaderError)

An error parsing the file header.

ParseData(Box<dyn Error + Send + Sync + 'static>)

An error parsing the data.

LengthOverflow

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

WrongNdim(Option<usize>, usize)

An error caused by incorrect Dimension type.

WrongDescriptor(PyValue)

The type descriptor does not match the element type.

MissingData

The file does not contain all the data described in the header.

ExtraBytes(usize)

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

Trait Implementations

impl From<Error> for ReadNpyError[src]

impl From<ReadDataError> for ReadNpyError[src]

impl From<ReadNpyError> for ReadNpzError[src]

impl Display for ReadNpyError[src]

impl Debug for ReadNpyError[src]

impl Error for ReadNpyError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]