pub struct InconsistentDimensionLengthError<const I: usize> {
pub lengths: [Option<usize>; I],
pub dimension: Dimension,
}Expand description
An error indicating the lengths of dimensions with the same
name were inconsistent in the I input tensors.
Fields§
§lengths: [Option<usize>; I]The lengths of each matching dimension name in each input in the same order as they were passed to the Einsum APIs.
Some inputs may not have this dimension, so will be None.
dimension: DimensionThe dimension name with an inconsistency.
Trait Implementations§
Source§impl<const I: usize> Clone for InconsistentDimensionLengthError<I>
impl<const I: usize> Clone for InconsistentDimensionLengthError<I>
Source§fn clone(&self) -> InconsistentDimensionLengthError<I>
fn clone(&self) -> InconsistentDimensionLengthError<I>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const I: usize> Debug for InconsistentDimensionLengthError<I>
impl<const I: usize> Debug for InconsistentDimensionLengthError<I>
Source§impl<const I: usize> Display for InconsistentDimensionLengthError<I>
impl<const I: usize> Display for InconsistentDimensionLengthError<I>
impl<const I: usize> Eq for InconsistentDimensionLengthError<I>
Source§impl<const I: usize> Error for InconsistentDimensionLengthError<I>
impl<const I: usize> Error for InconsistentDimensionLengthError<I>
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<const I: usize> PartialEq for InconsistentDimensionLengthError<I>
impl<const I: usize> PartialEq for InconsistentDimensionLengthError<I>
Source§fn eq(&self, other: &InconsistentDimensionLengthError<I>) -> bool
fn eq(&self, other: &InconsistentDimensionLengthError<I>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<const I: usize> StructuralPartialEq for InconsistentDimensionLengthError<I>
Auto Trait Implementations§
impl<const I: usize> Freeze for InconsistentDimensionLengthError<I>
impl<const I: usize> RefUnwindSafe for InconsistentDimensionLengthError<I>
impl<const I: usize> Send for InconsistentDimensionLengthError<I>
impl<const I: usize> Sync for InconsistentDimensionLengthError<I>
impl<const I: usize> Unpin for InconsistentDimensionLengthError<I>
impl<const I: usize> UnsafeUnpin for InconsistentDimensionLengthError<I>
impl<const I: usize> UnwindSafe for InconsistentDimensionLengthError<I>
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