Enum easy_ml::tensors::views::IndexRangeValidationError
source · pub enum IndexRangeValidationError<const D: usize, const P: usize> {
InvalidShape(InvalidShapeError<D>),
InvalidDimensions(InvalidDimensionsError<D, P>),
}
Expand description
An error in creating a TensorRange or a TensorMask.
Variants§
InvalidShape(InvalidShapeError<D>)
The shape that resulting Tensor would have would not be valid.
InvalidDimensions(InvalidDimensionsError<D, P>)
Multiple of the same dimension name were provided, but we can only take one mask or range for each dimension at a time.
Trait Implementations§
source§impl<const D: usize, const P: usize> Clone for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> Clone for IndexRangeValidationError<D, P>
source§fn clone(&self) -> IndexRangeValidationError<D, P>
fn clone(&self) -> IndexRangeValidationError<D, P>
Returns a copy 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<const D: usize, const P: usize> Error for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> Error for IndexRangeValidationError<D, P>
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<const D: usize, const P: usize> PartialEq<IndexRangeValidationError<D, P>> for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> PartialEq<IndexRangeValidationError<D, P>> for IndexRangeValidationError<D, P>
source§fn eq(&self, other: &IndexRangeValidationError<D, P>) -> bool
fn eq(&self, other: &IndexRangeValidationError<D, P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.