pub enum SumError {
OutOfRange {
bounds: (Bound<usize>, Bound<usize>),
len: usize,
},
}
Expand description
An error in calculating a partial sum.
Variants§
Trait Implementations§
Source§impl Error for SumError
impl Error for SumError
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()
impl Eq for SumError
impl StructuralPartialEq for SumError
Auto Trait Implementations§
impl Freeze for SumError
impl RefUnwindSafe for SumError
impl Send for SumError
impl Sync for SumError
impl Unpin for SumError
impl UnwindSafe for SumError
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