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 for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> PartialEq 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 ==
.impl<const D: usize, const P: usize> Eq for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> StructuralPartialEq for IndexRangeValidationError<D, P>
Auto Trait Implementations§
impl<const D: usize, const P: usize> Freeze for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> RefUnwindSafe for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> Send for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> Sync for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> Unpin for IndexRangeValidationError<D, P>
impl<const D: usize, const P: usize> UnwindSafe for IndexRangeValidationError<D, P>
Blanket Implementations§
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)