pub enum ReadHeaderError {
Io(Error),
Parse(ParseHeaderError),
}Expand description
Error reading an .npy header.
Variants§
Trait Implementations§
Source§impl Debug for ReadHeaderError
impl Debug for ReadHeaderError
Source§impl Display for ReadHeaderError
impl Display for ReadHeaderError
Source§impl Error for ReadHeaderError
impl Error for ReadHeaderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ReadHeaderError
impl From<Error> for ReadHeaderError
Source§fn from(err: Error) -> ReadHeaderError
fn from(err: Error) -> ReadHeaderError
Converts to this type from the input type.
Source§impl From<ParseHeaderError> for ReadHeaderError
impl From<ParseHeaderError> for ReadHeaderError
Source§fn from(err: ParseHeaderError) -> ReadHeaderError
fn from(err: ParseHeaderError) -> ReadHeaderError
Converts to this type from the input type.
Source§impl From<ReadHeaderError> for ReadNpyError
impl From<ReadHeaderError> for ReadNpyError
Source§fn from(err: ReadHeaderError) -> ReadNpyError
fn from(err: ReadHeaderError) -> ReadNpyError
Converts to this type from the input type.
Source§impl From<ReadHeaderError> for ViewNpyError
impl From<ReadHeaderError> for ViewNpyError
Source§fn from(err: ReadHeaderError) -> ViewNpyError
fn from(err: ReadHeaderError) -> ViewNpyError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadHeaderError
impl !RefUnwindSafe for ReadHeaderError
impl Send for ReadHeaderError
impl Sync for ReadHeaderError
impl Unpin for ReadHeaderError
impl !UnwindSafe for ReadHeaderError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more