pub enum ReductionShapeError {
AxisOutOfBounds {
axis: usize,
rank: usize,
},
DuplicateAxis {
axis: usize,
},
}Expand description
Error returned when computing public reduction output shapes.
Variants§
Trait Implementations§
Source§impl Clone for ReductionShapeError
impl Clone for ReductionShapeError
Source§fn clone(&self) -> ReductionShapeError
fn clone(&self) -> ReductionShapeError
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 ReductionShapeError
impl Debug for ReductionShapeError
Source§impl Display for ReductionShapeError
impl Display for ReductionShapeError
Source§impl Error for ReductionShapeError
impl Error for ReductionShapeError
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 PartialEq for ReductionShapeError
impl PartialEq for ReductionShapeError
impl Eq for ReductionShapeError
impl StructuralPartialEq for ReductionShapeError
Auto Trait Implementations§
impl Freeze for ReductionShapeError
impl RefUnwindSafe for ReductionShapeError
impl Send for ReductionShapeError
impl Sync for ReductionShapeError
impl Unpin for ReductionShapeError
impl UnsafeUnpin for ReductionShapeError
impl UnwindSafe for ReductionShapeError
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