pub enum ZfpClassicCodecError {
Show 13 variants
UnsupportedDtype(AnyArrayDType),
FixedAccuracyModeIntegerData,
ExcessiveDimensionality {
shape: Vec<usize>,
},
InvalidExpertMode {
mode: ZfpCompressionMode,
},
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 ZfpClassicCodec
.
Variants§
UnsupportedDtype(AnyArrayDType)
ZfpClassicCodec
does not support the dtype
FixedAccuracyModeIntegerData
ZfpClassicCodec
does not support the fixed accuracy mode for
integer data
ExcessiveDimensionality
ZfpClassicCodec
only supports 1-4 dimensional data
InvalidExpertMode
ZfpClassicCodec
was configured with an invalid expert mode
Fields
mode: ZfpCompressionMode
The unexpected compression mode
HeaderEncodeFailed
ZfpClassicCodec
failed to encode the header
MetaHeaderEncodeFailed
ZfpClassicCodec
failed to encode the array metadata header
Fields
source: ZfpHeaderError
Opaque source error
ZfpEncodeFailed
ZfpClassicCodec
failed to encode the data
EncodedDataNotBytes
ZfpClassicCodec
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
ZfpClassicCodec
can only decode one-dimensional byte arrays but
received an array of a different shape
HeaderDecodeFailed
ZfpClassicCodec
failed to decode the header
MetaHeaderDecodeFailed
ZfpClassicCodec
failed to decode the array metadata header
Fields
source: ZfpHeaderError
Opaque source error
MismatchedDecodeIntoArray
ZfpClassicCodec
cannot decode into the provided array
Fields
source: AnyArrayAssignError
The source of the error
ZfpDecodeFailed
ZfpClassicCodec
failed to decode the data
Trait Implementations§
Source§impl Debug for ZfpClassicCodecError
impl Debug for ZfpClassicCodecError
Source§impl Display for ZfpClassicCodecError
impl Display for ZfpClassicCodecError
Source§impl Error for ZfpClassicCodecError
impl Error for ZfpClassicCodecError
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 ZfpClassicCodecError
impl From<AnyArrayAssignError> for ZfpClassicCodecError
Source§fn from(source: AnyArrayAssignError) -> Self
fn from(source: AnyArrayAssignError) -> Self
Auto Trait Implementations§
impl Freeze for ZfpClassicCodecError
impl RefUnwindSafe for ZfpClassicCodecError
impl Send for ZfpClassicCodecError
impl Sync for ZfpClassicCodecError
impl Unpin for ZfpClassicCodecError
impl UnwindSafe for ZfpClassicCodecError
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