Struct overflow_error::CannotDivValue [−][src]
pub struct CannotDivValue<T: ?Sized>(_, _);
CannotDiv with an attached value.
Trait Implementations
impl<T: Copy + ?Sized> Copy for CannotDivValue<T>[src]
impl<T: Copy + ?Sized> Copy for CannotDivValue<T>impl<T: Clone + ?Sized> Clone for CannotDivValue<T>[src]
impl<T: Clone + ?Sized> Clone for CannotDivValue<T>fn clone(&self) -> CannotDivValue<T>[src]
fn clone(&self) -> CannotDivValue<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: Debug + ?Sized> Debug for CannotDivValue<T>[src]
impl<T: Debug + ?Sized> Debug for CannotDivValue<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: PartialEq + ?Sized> PartialEq for CannotDivValue<T>[src]
impl<T: PartialEq + ?Sized> PartialEq for CannotDivValue<T>fn eq(&self, other: &CannotDivValue<T>) -> bool[src]
fn eq(&self, other: &CannotDivValue<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CannotDivValue<T>) -> bool[src]
fn ne(&self, other: &CannotDivValue<T>) -> boolThis method tests for !=.
impl<T: Eq + ?Sized> Eq for CannotDivValue<T>[src]
impl<T: Eq + ?Sized> Eq for CannotDivValue<T>impl<T: Hash + ?Sized> Hash for CannotDivValue<T>[src]
impl<T: Hash + ?Sized> Hash for CannotDivValue<T>fn hash<__HT: Hasher>(&self, state: &mut __HT)[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl<T: ?Sized> ErrorWith<T> for CannotDivValue<T>[src]
impl<T: ?Sized> ErrorWith<T> for CannotDivValue<T>type Without = CannotDiv
This error, without the attached value.
fn as_error(&self) -> CannotDiv[src]
fn as_error(&self) -> CannotDivGets the underlying error.
fn as_value(&self) -> &T[src]
fn as_value(&self) -> &TReferences the attached value.
fn into_value(self) -> T where
T: Sized, [src]
fn into_value(self) -> T where
T: Sized, Consumes this error and returns the attached value.
fn into_error(self) -> Self::Without where
Self: Sized,
Val: Sized, [src]
fn into_error(self) -> Self::Without where
Self: Sized,
Val: Sized, Discards the attached value and returns the underlying error.
fn map<F, Ret>(self, f: F) -> <Self::Without as ErrorBase<Ret>>::With where
Self: Sized,
Val: Sized,
F: Fn(Val) -> Ret,
Self::Without: ErrorBase<Ret>,
<Self::Without as ErrorBase<Ret>>::With: Sized, [src]
fn map<F, Ret>(self, f: F) -> <Self::Without as ErrorBase<Ret>>::With where
Self: Sized,
Val: Sized,
F: Fn(Val) -> Ret,
Self::Without: ErrorBase<Ret>,
<Self::Without as ErrorBase<Ret>>::With: Sized, Maps a function over the attached value.
impl<T> From<DivValueByZero<T>> for CannotDivValue<T>[src]
impl<T> From<DivValueByZero<T>> for CannotDivValue<T>fn from(err: DivValueByZero<T>) -> CannotDivValue<T>[src]
fn from(err: DivValueByZero<T>) -> CannotDivValue<T>Performs the conversion.
impl<T> From<WouldOverflowValue<T>> for CannotDivValue<T>[src]
impl<T> From<WouldOverflowValue<T>> for CannotDivValue<T>fn from(err: WouldOverflowValue<T>) -> CannotDivValue<T>[src]
fn from(err: WouldOverflowValue<T>) -> CannotDivValue<T>Performs the conversion.
impl<T: ?Sized + Display> Display for CannotDivValue<T>[src]
impl<T: ?Sized + Display> Display for CannotDivValue<T>Auto Trait Implementations
impl<T: ?Sized> Send for CannotDivValue<T> where
T: Send,
impl<T: ?Sized> Send for CannotDivValue<T> where
T: Send, impl<T: ?Sized> Sync for CannotDivValue<T> where
T: Sync,
impl<T: ?Sized> Sync for CannotDivValue<T> where
T: Sync,