#[non_exhaustive]pub enum ArrayError {
Show 16 variants
ArrayBytesFixedDisjointViewCreateError(ArrayBytesFixedDisjointViewCreateError),
StorageError(StorageError),
CodecError(CodecError),
InvalidChunkGridIndicesError(Vec<u64>),
IncompatibleDimensionalityError(IncompatibleDimensionalityError),
ArraySubsetError(ArraySubsetError),
InvalidArraySubset(ArraySubset, ArrayShape),
InvalidChunkSubset(ArraySubset, ArrayIndices, ArrayShape),
UnexpectedChunkDecodedSize(usize, usize),
InvalidBytesInputSize(usize, u64),
UnexpectedChunkDecodedShape(ArrayShape, ArrayShape),
ElementError(ElementError),
InvalidDataShape(Vec<usize>, Vec<usize>),
UnsupportedMethod(String),
TensorError(TensorError),
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.
ArraySubsetError(ArraySubsetError)
An ArraySubsetError.
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.
ElementError(ElementError)
An element error.
InvalidDataShape(Vec<usize>, Vec<usize>)
Invalid data shape.
UnsupportedMethod(String)
Unsupported method.
TensorError(TensorError)
Available on crate feature
dlpack only.A TensorError.
Other(String)
Any other error.
Trait Implementations§
Source§impl Clone for ArrayError
impl Clone for ArrayError
Source§fn clone(&self) -> ArrayError
fn clone(&self) -> ArrayError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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<ArraySubsetError> for ArrayError
impl From<ArraySubsetError> for ArrayError
Source§fn from(source: ArraySubsetError) -> Self
fn from(source: 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<ElementError> for ArrayError
impl From<ElementError> for ArrayError
Source§fn from(source: ElementError) -> Self
fn from(source: ElementError) -> Self
Converts to this type from the input type.
Source§impl From<ExpectedFixedLengthBytesError> for ArrayError
impl From<ExpectedFixedLengthBytesError> for ArrayError
Source§fn from(err: ExpectedFixedLengthBytesError) -> Self
fn from(err: ExpectedFixedLengthBytesError) -> Self
Converts to this type from the input type.
Source§impl From<ExpectedOptionalBytesError> for ArrayError
impl From<ExpectedOptionalBytesError> for ArrayError
Source§fn from(err: ExpectedOptionalBytesError) -> Self
fn from(err: ExpectedOptionalBytesError) -> Self
Converts to this type from the input type.
Source§impl From<ExpectedVariableLengthBytesError> for ArrayError
impl From<ExpectedVariableLengthBytesError> for ArrayError
Source§fn from(err: ExpectedVariableLengthBytesError) -> Self
fn from(err: ExpectedVariableLengthBytesError) -> 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<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.
Source§impl From<TensorError> for ArrayError
impl From<TensorError> for ArrayError
Source§fn from(source: TensorError) -> Self
fn from(source: TensorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArrayError
impl Send for ArrayError
impl Sync for ArrayError
impl !RefUnwindSafe for ArrayError
impl Unpin for ArrayError
impl !UnwindSafe for ArrayError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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