Enum ndarray_npy::ReadDataError[][src]

pub enum ReadDataError {
    Io(Error),
    WrongDescriptor(PyValue),
    MissingData,
    ExtraBytes(usize),
    ParseData(Box<dyn Error + Send + Sync + 'static>),
}

An error reading array data.

Variants

Io(Error)

An error caused by I/O.

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.

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

An error parsing the data.

Trait Implementations

impl Debug for ReadDataError[src]

impl Display for ReadDataError[src]

impl Error for ReadDataError[src]

impl From<Error> for ReadDataError[src]

fn from(err: Error) -> ReadDataError[src]

Performs the conversion.

If the error kind is UnexpectedEof, the MissingData variant is returned. Otherwise, the Io variant is returned.

impl From<ReadDataError> for ReadNpyError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.