pub enum ArraySubsetError {
IncompatibleDimensionality {
got: usize,
expected: usize,
},
IncompatibleStartShape {
start: Vec<u64>,
shape: Vec<u64>,
},
IncompatibleStartEnd {
start: Vec<u64>,
end: Vec<u64>,
inclusive: bool,
},
IncompatibleOffset {
start: Vec<u64>,
offset: Vec<u64>,
},
}Expand description
An incompatible start/end indices error.
Variants§
IncompatibleDimensionality
Incompatible dimensionality.
IncompatibleStartShape
Incompatible start and shape.
IncompatibleStartEnd
Incompatible start and end indices.
IncompatibleOffset
Incompatible offset.
Trait Implementations§
Source§impl Clone for ArraySubsetError
impl Clone for ArraySubsetError
Source§fn clone(&self) -> ArraySubsetError
fn clone(&self) -> ArraySubsetError
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 ArraySubsetError
impl Debug for ArraySubsetError
Source§impl Display for ArraySubsetError
impl Display for ArraySubsetError
Source§impl Error for ArraySubsetError
impl Error for ArraySubsetError
1.30.0 · 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<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<ArraySubsetError> for CodecError
impl From<ArraySubsetError> for CodecError
Source§fn from(source: ArraySubsetError) -> CodecError
fn from(source: ArraySubsetError) -> CodecError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArraySubsetError
impl Send for ArraySubsetError
impl Sync for ArraySubsetError
impl RefUnwindSafe for ArraySubsetError
impl Unpin for ArraySubsetError
impl UnsafeUnpin for ArraySubsetError
impl UnwindSafe for ArraySubsetError
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