pub enum DimExprEvalError {
InputOutOfBounds {
input_idx: usize,
input_count: usize,
},
AxisOutOfBounds {
input_idx: usize,
axis: usize,
rank: usize,
},
AddOverflow {
lhs: usize,
rhs: usize,
},
SubUnderflow {
lhs: usize,
rhs: usize,
},
MulOverflow {
lhs: usize,
rhs: usize,
},
FloorDivByZero {
lhs: usize,
rhs: usize,
},
}Expand description
Error produced while evaluating a DimExpr against concrete shapes.
Variants§
InputOutOfBounds
InputDim referenced an input that was not provided.
AxisOutOfBounds
InputDim referenced an axis that does not exist on the selected input.
AddOverflow
Addition overflowed usize.
SubUnderflow
Subtraction would underflow usize.
MulOverflow
Multiplication overflowed usize.
FloorDivByZero
Floor division divisor evaluated to zero.
Trait Implementations§
Source§impl Clone for DimExprEvalError
impl Clone for DimExprEvalError
Source§fn clone(&self) -> DimExprEvalError
fn clone(&self) -> DimExprEvalError
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 DimExprEvalError
impl Debug for DimExprEvalError
Source§impl Display for DimExprEvalError
impl Display for DimExprEvalError
Source§impl Error for DimExprEvalError
impl Error for DimExprEvalError
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 DimExprEvalError
impl PartialEq for DimExprEvalError
impl Eq for DimExprEvalError
impl StructuralPartialEq for DimExprEvalError
Auto Trait Implementations§
impl Freeze for DimExprEvalError
impl RefUnwindSafe for DimExprEvalError
impl Send for DimExprEvalError
impl Sync for DimExprEvalError
impl Unpin for DimExprEvalError
impl UnsafeUnpin for DimExprEvalError
impl UnwindSafe for DimExprEvalError
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