pub enum Sz3CodecError {
UnsupportedDtype(AnyArrayDType),
HeaderEncodeFailed {
source: Sz3HeaderError,
},
InvalidEncodeShape {
source: Sz3CodingError,
shape: Vec<usize>,
},
Sz3EncodeFailed {
source: Sz3CodingError,
},
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed {
source: Sz3HeaderError,
},
DecodeInvalidShapeHeader {
source: ShapeError,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}
Expand description
Errors that may occur when applying the Sz3Codec
.
Variants§
UnsupportedDtype(AnyArrayDType)
Sz3Codec
does not support the dtype
HeaderEncodeFailed
Sz3Codec
failed to encode the header
Fields
§
source: Sz3HeaderError
Opaque source error
InvalidEncodeShape
Sz3Codec
cannot encode an array of shape
Fields
§
source: Sz3CodingError
Opaque source error
Sz3EncodeFailed
Sz3Codec
failed to encode the data
Fields
§
source: Sz3CodingError
Opaque source error
EncodedDataNotBytes
Sz3Codec
can only decode one-dimensional byte arrays but received
an array of a different dtype
Fields
§
dtype: AnyArrayDType
The unexpected dtype of the encoded array
EncodedDataNotOneDimensional
Sz3Codec
can only decode one-dimensional byte arrays but received
an array of a different shape
HeaderDecodeFailed
Sz3Codec
failed to decode the header
Fields
§
source: Sz3HeaderError
Opaque source error
DecodeInvalidShapeHeader
Sz3Codec
decoded an invalid array shape header which does not fit
the decoded data
Fields
§
source: ShapeError
Source error
MismatchedDecodeIntoArray
Sz3Codec
cannot decode into the provided array
Fields
§
source: AnyArrayAssignError
The source of the error
Trait Implementations§
Source§impl Debug for Sz3CodecError
impl Debug for Sz3CodecError
Source§impl Display for Sz3CodecError
impl Display for Sz3CodecError
Source§impl Error for Sz3CodecError
impl Error for Sz3CodecError
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<AnyArrayAssignError> for Sz3CodecError
impl From<AnyArrayAssignError> for Sz3CodecError
Source§fn from(source: AnyArrayAssignError) -> Self
fn from(source: AnyArrayAssignError) -> Self
Converts to this type from the input type.
Source§impl From<ShapeError> for Sz3CodecError
impl From<ShapeError> for Sz3CodecError
Source§fn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Sz3CodecError
impl RefUnwindSafe for Sz3CodecError
impl Send for Sz3CodecError
impl Sync for Sz3CodecError
impl Unpin for Sz3CodecError
impl UnwindSafe for Sz3CodecError
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