pub enum WriteNpyError {
Io(Error),
FormatHeader(FormatHeaderError),
FormatData(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
An error writing a .npy
file.
Variants§
Io(Error)
An error caused by I/O.
FormatHeader(FormatHeaderError)
An error formatting the header.
FormatData(Box<dyn Error + Send + Sync + 'static>)
An error formatting the data.
Trait Implementations§
Source§impl Debug for WriteNpyError
impl Debug for WriteNpyError
Source§impl Display for WriteNpyError
impl Display for WriteNpyError
Source§impl Error for WriteNpyError
impl Error for WriteNpyError
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 · Source§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 WriteNpyError
impl From<Error> for WriteNpyError
Source§fn from(err: Error) -> WriteNpyError
fn from(err: Error) -> WriteNpyError
Converts to this type from the input type.
Source§impl From<WriteDataError> for WriteNpyError
impl From<WriteDataError> for WriteNpyError
Source§fn from(err: WriteDataError) -> WriteNpyError
fn from(err: WriteDataError) -> WriteNpyError
Converts to this type from the input type.
Source§impl From<WriteNpyError> for WriteNpzError
impl From<WriteNpyError> for WriteNpzError
Source§fn from(err: WriteNpyError) -> WriteNpzError
fn from(err: WriteNpyError) -> WriteNpzError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WriteNpyError
impl !RefUnwindSafe for WriteNpyError
impl Send for WriteNpyError
impl Sync for WriteNpyError
impl Unpin for WriteNpyError
impl !UnwindSafe for WriteNpyError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more