Trait overflow_error::ErrorBase
[−]
[src]
pub trait ErrorBase<Val: ?Sized = ()>: Fail + Into<&'static str> + Copy + Eq + Hash { type With: ?Sized + ErrorWith<Val, Without = Self>; fn val(self, val: Val) -> Self::With
where
Val: Sized; }
The failure of a particular operation.
Can be attached with a value of type Val
.
Associated Types
Required Methods
Implementors
impl<T: ?Sized> ErrorBase<T> for DivByZero type With = DivValueByZero<T>;
impl<T: ?Sized> ErrorBase<T> for CannotDiv type With = CannotDivValue<T>;
impl<T: ?Sized> ErrorBase<T> for Overflowed type With = OverflowedValue<T>;
impl<T: ?Sized> ErrorBase<T> for WouldOverflow type With = WouldOverflowValue<T>;