pub enum ReinterpretCodecError {
InvalidReinterpret {
decode_dtype: AnyArrayDType,
encode_dtype: AnyArrayDType,
},
MismatchedEncodeDType {
configured: AnyArrayDType,
provided: AnyArrayDType,
},
MismatchedDecodeDType {
configured: AnyArrayDType,
provided: AnyArrayDType,
},
InvalidEncodedShape {
shape: Vec<usize>,
dtype: AnyArrayDType,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}Expand description
Errors that may occur when applying the ReinterpretCodec.
Variants§
InvalidReinterpret
ReinterpretCodec cannot cannot bitcast the decode_dtype as
encode_dtype
Fields
decode_dtype: AnyArrayDTypeDtype of the configured decode_dtype
encode_dtype: AnyArrayDTypeDtype of the configured encode_dtype
MismatchedEncodeDType
ReinterpretCodec cannot encode the provided dtype which differs
from the configured dtype
Fields
configured: AnyArrayDTypeDtype of the configured decode_dtype
provided: AnyArrayDTypeDtype of the provided array from which the data is to be encoded
MismatchedDecodeDType
ReinterpretCodec cannot decode the provided dtype which differs
from the configured dtype
Fields
configured: AnyArrayDTypeDtype of the configured encode_dtype
provided: AnyArrayDTypeDtype of the provided array from which the data is to be decoded
InvalidEncodedShape
ReinterpretCodec cannot decode a byte array with shape into an array of dtypes
Fields
dtype: AnyArrayDTypeDtype of the array into which the encoded data is to be decoded
MismatchedDecodeIntoArray
ReinterpretCodec cannot decode into the provided array
Fields
source: AnyArrayAssignErrorThe source of the error
Trait Implementations§
Source§impl Debug for ReinterpretCodecError
impl Debug for ReinterpretCodecError
Source§impl Display for ReinterpretCodecError
impl Display for ReinterpretCodecError
Source§impl Error for ReinterpretCodecError
impl Error for ReinterpretCodecError
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 ReinterpretCodecError
impl From<AnyArrayAssignError> for ReinterpretCodecError
Source§fn from(source: AnyArrayAssignError) -> Self
fn from(source: AnyArrayAssignError) -> Self
Auto Trait Implementations§
impl Freeze for ReinterpretCodecError
impl RefUnwindSafe for ReinterpretCodecError
impl Send for ReinterpretCodecError
impl Sync for ReinterpretCodecError
impl Unpin for ReinterpretCodecError
impl UnwindSafe for ReinterpretCodecError
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