Struct overflow_error::WouldOverflowValue
[−]
[src]
pub struct WouldOverflowValue<T: ?Sized>(_);
[WouldOverflow
] with an attached value.
Trait Implementations
impl<T> From<WouldOverflowValue<T>> for CannotDivValue<T>
[src]
fn from(err: WouldOverflowValue<T>) -> CannotDivValue<T>
[src]
Performs the conversion.
impl<T: Copy + ?Sized> Copy for WouldOverflowValue<T>
[src]
impl<T: Clone + ?Sized> Clone for WouldOverflowValue<T>
[src]
fn clone(&self) -> WouldOverflowValue<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug + ?Sized> Debug for WouldOverflowValue<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq + ?Sized> PartialEq for WouldOverflowValue<T>
[src]
fn eq(&self, __arg_0: &WouldOverflowValue<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WouldOverflowValue<T>) -> bool
[src]
This method tests for !=
.
impl<T: Eq + ?Sized> Eq for WouldOverflowValue<T>
[src]
impl<T: Hash + ?Sized> Hash for WouldOverflowValue<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
[src]
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: ?Sized> ErrorWith<T> for WouldOverflowValue<T>
[src]
type Without = WouldOverflow
This error, without the attached value.
fn as_error(&self) -> WouldOverflow
[src]
Gets the underlying error.
fn as_value(&self) -> &T
[src]
References the attached value.
fn into_value(self) -> T where
T: Sized,
[src]
T: Sized,
Consumes this error and returns the attached value.
fn into_error(self) -> Self::Without where
Self: Sized,
Val: Sized,
[src]
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]
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: ?Sized + Display> Display for WouldOverflowValue<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> Send for WouldOverflowValue<T> where
T: Send,
T: Send,
impl<T: ?Sized> Sync for WouldOverflowValue<T> where
T: Sync,
T: Sync,