#[non_exhaustive]pub enum ArrayError {
Show 18 variants
ArrayBytesFixedDisjointViewCreateError(ArrayBytesFixedDisjointViewCreateError),
StorageError(StorageError),
CodecError(CodecError),
InvalidChunkGridIndicesError(Vec<u64>),
IncompatibleDimensionalityError(IncompatibleDimensionalityError),
IncompatibleStartEndIndicesError(IncompatibleStartEndIndicesError),
IncompatibleOffset(IncompatibleOffsetError),
InvalidArraySubset(ArraySubset, ArrayShape),
InvalidChunkSubset(ArraySubset, ArrayIndices, ArrayShape),
UnexpectedChunkDecodedSize(usize, usize),
InvalidBytesInputSize(usize, u64),
UnexpectedChunkDecodedShape(ArrayShape, ArrayShape),
IncompatibleElementType,
InvalidDataShape(Vec<usize>, Vec<usize>),
InvalidElementValue,
UnsupportedMethod(String),
DlPackError(ArrayDlPackExtError),
Other(String),
}
Expand description
Array errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ArrayBytesFixedDisjointViewCreateError(ArrayBytesFixedDisjointViewCreateError)
Error when a disjoint view creation cannot be done
StorageError(StorageError)
A store error.
CodecError(CodecError)
A codec error.
InvalidChunkGridIndicesError(Vec<u64>)
Invalid chunk grid indices.
IncompatibleDimensionalityError(IncompatibleDimensionalityError)
Incompatible dimensionality.
IncompatibleStartEndIndicesError(IncompatibleStartEndIndicesError)
Incompatible start and end indices.
IncompatibleOffset(IncompatibleOffsetError)
An incompatible offset.
InvalidArraySubset(ArraySubset, ArrayShape)
Incompatible array subset.
InvalidChunkSubset(ArraySubset, ArrayIndices, ArrayShape)
Incompatible chunk subset.
UnexpectedChunkDecodedSize(usize, usize)
An unexpected chunk decoded size.
InvalidBytesInputSize(usize, u64)
An unexpected bytes input size.
UnexpectedChunkDecodedShape(ArrayShape, ArrayShape)
An unexpected chunk decoded shape.
IncompatibleElementType
Incompatible element size.
InvalidDataShape(Vec<usize>, Vec<usize>)
Invalid data shape.
InvalidElementValue
Invalid element value.
For example
- a bool array with a value not equal to 0 (false) or 1 (true).
- a string with invalid utf-8 encoding.
UnsupportedMethod(String)
Unsupported method.
DlPackError(ArrayDlPackExtError)
Available on crate feature
dlpack
only.A DLPack
error
Other(String)
Any other error.
Trait Implementations§
Source§impl Debug for ArrayError
impl Debug for ArrayError
Source§impl Display for ArrayError
impl Display for ArrayError
Source§impl Error for ArrayError
impl Error for ArrayError
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<ArrayBytesFixedDisjointViewCreateError> for ArrayError
impl From<ArrayBytesFixedDisjointViewCreateError> for ArrayError
Source§fn from(source: ArrayBytesFixedDisjointViewCreateError) -> Self
fn from(source: ArrayBytesFixedDisjointViewCreateError) -> Self
Converts to this type from the input type.
Source§impl From<ArrayDlPackExtError> for ArrayError
impl From<ArrayDlPackExtError> for ArrayError
Source§fn from(source: ArrayDlPackExtError) -> Self
fn from(source: ArrayDlPackExtError) -> Self
Converts to this type from the input type.
Source§impl From<ArraySubsetError> for ArrayError
impl From<ArraySubsetError> for ArrayError
Source§fn from(arr_subset_err: ArraySubsetError) -> Self
fn from(arr_subset_err: ArraySubsetError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for ArrayError
impl From<CodecError> for ArrayError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<IncompatibleDimensionalityError> for ArrayError
impl From<IncompatibleDimensionalityError> for ArrayError
Source§fn from(source: IncompatibleDimensionalityError) -> Self
fn from(source: IncompatibleDimensionalityError) -> Self
Converts to this type from the input type.
Source§impl From<IncompatibleOffsetError> for ArrayError
impl From<IncompatibleOffsetError> for ArrayError
Source§fn from(source: IncompatibleOffsetError) -> Self
fn from(source: IncompatibleOffsetError) -> Self
Converts to this type from the input type.
Source§impl From<IncompatibleStartEndIndicesError> for ArrayError
impl From<IncompatibleStartEndIndicesError> for ArrayError
Source§fn from(source: IncompatibleStartEndIndicesError) -> Self
fn from(source: IncompatibleStartEndIndicesError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for ArrayError
impl From<StorageError> for ArrayError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArrayError
impl !RefUnwindSafe for ArrayError
impl Send for ArrayError
impl Sync for ArrayError
impl Unpin for ArrayError
impl !UnwindSafe for ArrayError
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
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>
Converts
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>
Converts
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