Enum zarrs::array::ArrayViewCreateError
source · pub enum ArrayViewCreateError {
ArraySubsetOutOfBounds(ArraySubset, ArrayShape),
SubsetIncompatibleDimensionality(IncompatibleDimensionalityError),
}
Expand description
An array view create error.
Variants§
ArraySubsetOutOfBounds(ArraySubset, ArrayShape)
Array subset is out of bounds of the array shape.
SubsetIncompatibleDimensionality(IncompatibleDimensionalityError)
The subset has an incompatible dimensionality to the array shape.
Trait Implementations§
source§impl Debug for ArrayViewCreateError
impl Debug for ArrayViewCreateError
source§impl Display for ArrayViewCreateError
impl Display for ArrayViewCreateError
source§impl Error for ArrayViewCreateError
impl Error for ArrayViewCreateError
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<IncompatibleDimensionalityError> for ArrayViewCreateError
impl From<IncompatibleDimensionalityError> for ArrayViewCreateError
source§fn from(source: IncompatibleDimensionalityError) -> Self
fn from(source: IncompatibleDimensionalityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArrayViewCreateError
impl RefUnwindSafe for ArrayViewCreateError
impl Send for ArrayViewCreateError
impl Sync for ArrayViewCreateError
impl Unpin for ArrayViewCreateError
impl UnwindSafe for ArrayViewCreateError
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