pub enum ZfpCodecError {
Show 14 variants
UnsupportedDtype(AnyArrayDType),
FixedAccuracyModeIntegerData,
ExcessiveDimensionality {
shape: Vec<usize>,
},
InvalidExpertMode {
mode: ZfpCompressionMode,
},
NonFiniteData,
HeaderEncodeFailed,
MetaHeaderEncodeFailed {
source: ZfpHeaderError,
},
ZfpEncodeFailed,
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed,
MetaHeaderDecodeFailed {
source: ZfpHeaderError,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
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: ZfpCompressionModeThe unexpected compression mode
NonFiniteData
ZfpCodec does not support non-finite (infinite or NaN) floating
point data in non-reversible lossy compression
HeaderEncodeFailed
ZfpCodec failed to encode the header
MetaHeaderEncodeFailed
ZfpCodec failed to encode the array metadata header
Fields
source: ZfpHeaderErrorOpaque source error
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: AnyArrayDTypeThe 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
MetaHeaderDecodeFailed
ZfpCodec failed to decode the array metadata header
Fields
source: ZfpHeaderErrorOpaque source error
MismatchedDecodeIntoArray
ZfpCodec cannot decode into the provided array
Fields
source: AnyArrayAssignErrorThe source of the error
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