pub enum ZfpCodecError {
UnsupportedDtype(AnyArrayDType),
FixedAccuracyModeIntegerData,
ExcessiveDimensionality {
shape: Vec<usize>,
},
InvalidExpertMode {
mode: ZfpCompressionMode,
},
HeaderEncodeFailed,
ZfpEncodeFailed,
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed,
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
DecodeUnknownDtype(u32),
ZfpDecodeFailed,
}
Expand description
Errors that may occur when applying the ZfpCodec
.
Variants§
UnsupportedDtype(AnyArrayDType)
ZfpCodec
does not support the dtype
FixedAccuracyModeIntegerData
ZfpCodec
does not support the fixed accuracy mode for integer data
ExcessiveDimensionality
ZfpCodec
only supports 1-4 dimensional data
InvalidExpertMode
ZfpCodec
was configured with an invalid expert mode
Fields
mode: ZfpCompressionMode
The unexpected compression mode
HeaderEncodeFailed
ZfpCodec
failed to encode the header
ZfpEncodeFailed
ZfpCodec
failed to encode the data
EncodedDataNotBytes
ZfpCodec
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
ZfpCodec
can only decode one-dimensional byte arrays but received
an array of a different shape
HeaderDecodeFailed
ZfpCodec
failed to decode the header
MismatchedDecodeIntoArray
ZfpCodec
cannot decode into the provided array
Fields
source: AnyArrayAssignError
The source of the error
DecodeUnknownDtype(u32)
ZfpCodec
failed to decode the data with the unknown dtype
ZfpDecodeFailed
ZfpCodec
failed to decode the data
Trait Implementations§
Source§impl Debug for ZfpCodecError
impl Debug for ZfpCodecError
Source§impl Display for ZfpCodecError
impl Display for ZfpCodecError
Source§impl Error for ZfpCodecError
impl Error for ZfpCodecError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AnyArrayAssignError> for ZfpCodecError
impl From<AnyArrayAssignError> for ZfpCodecError
Source§fn from(source: AnyArrayAssignError) -> Self
fn from(source: AnyArrayAssignError) -> Self
Auto Trait Implementations§
impl Freeze for ZfpCodecError
impl RefUnwindSafe for ZfpCodecError
impl Send for ZfpCodecError
impl Sync for ZfpCodecError
impl Unpin for ZfpCodecError
impl UnwindSafe for ZfpCodecError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more