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.
LengthOverflowOverflow while computing the length of the array from the shape described in the file header.
ExtraBytesExtra 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 ReadNpyErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for ReadNpyError
impl Display for ReadNpyErrorimpl Error for ReadNpyError
impl Error for ReadNpyErrorfn description(&self) -> &str
fn description(&self) -> &strThis 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 ReadNpyErrorfn from(err: Error) -> ReadNpyError
fn from(err: Error) -> ReadNpyErrorPerforms the conversion.
impl From<ShapeError> for ReadNpyError
impl From<ShapeError> for ReadNpyErrorfn from(err: ShapeError) -> ReadNpyError
fn from(err: ShapeError) -> ReadNpyErrorPerforms the conversion.
impl From<ReadNpyError> for ReadNpzError
impl From<ReadNpyError> for ReadNpzErrorfn from(err: ReadNpyError) -> ReadNpzError
fn from(err: ReadNpyError) -> ReadNpzErrorPerforms the conversion.
Auto Trait Implementations
impl Send for ReadNpyError
impl Send for ReadNpyErrorimpl Sync for ReadNpyError
impl Sync for ReadNpyError