Enum zarrs::array::ArrayError
source · pub enum ArrayError {
StorageError(StorageError),
CodecError(CodecError),
InvalidChunkGridIndicesError(Vec<u64>),
IncompatibleDimensionalityError(IncompatibleDimensionalityError),
InvalidArraySubset(ArraySubset, ArrayShape),
InvalidChunkSubset(ArraySubset, ArrayIndices, ArrayShape),
UnexpectedChunkDecodedSize(usize, usize),
InvalidBytesInputSize(usize, u64),
UnexpectedChunkDecodedShape(ArrayShape, ArrayShape),
IncompatibleElementSize(usize, usize),
InvalidDataShape(Vec<usize>, Vec<usize>),
}
Expand description
Array errors.
Variants§
StorageError(StorageError)
A store error.
CodecError(CodecError)
A codec error.
InvalidChunkGridIndicesError(Vec<u64>)
Invalid chunk grid indices.
IncompatibleDimensionalityError(IncompatibleDimensionalityError)
Incompatible dimensionality.
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.
IncompatibleElementSize(usize, usize)
Incompatible element size.
InvalidDataShape(Vec<usize>, Vec<usize>)
Invalid data shape.
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)>
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<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<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> 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