[−]Enum conv::errors::GeneralErrorKind
A general error enumeration that subsumes all other conversion errors, but discards all input payloads the errors may be carrying.
This exists primarily as a "catch-all" for reliably unifying various different kinds of conversion errors, and between different input types.
Variants
NegOverflow
Input was too negative for the target type.
PosOverflow
Input was too positive for the target type.
Unrepresentable
Input was not representable in the target type.
Trait Implementations
impl Eq for GeneralErrorKind
impl Clone for GeneralErrorKind
fn clone(&self) -> GeneralErrorKind
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialOrd<GeneralErrorKind> for GeneralErrorKind
fn partial_cmp(&self, other: &GeneralErrorKind) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Ord for GeneralErrorKind
fn cmp(&self, other: &GeneralErrorKind) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<GeneralErrorKind> for GeneralErrorKind
fn eq(&self, other: &GeneralErrorKind) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl From<NoError> for GeneralErrorKind
[src]
impl<T> From<Unrepresentable<T>> for GeneralErrorKind
[src]
fn from(_: Unrepresentable<T>) -> Self
[src]
impl<T> From<NegOverflow<T>> for GeneralErrorKind
[src]
fn from(_: NegOverflow<T>) -> Self
[src]
impl<T> From<PosOverflow<T>> for GeneralErrorKind
[src]
fn from(_: PosOverflow<T>) -> Self
[src]
impl From<RangeErrorKind> for GeneralErrorKind
[src]
fn from(e: RangeErrorKind) -> Self
[src]
impl<T> From<RangeError<T>> for GeneralErrorKind
[src]
fn from(e: RangeError<T>) -> Self
[src]
impl<T> From<GeneralError<T>> for GeneralErrorKind
[src]
fn from(e: GeneralError<T>) -> Self
[src]
impl<T> From<FloatError<T>> for GeneralErrorKind
[src]
fn from(e: FloatError<T>) -> GeneralErrorKind
[src]
impl Copy for GeneralErrorKind
impl Display for GeneralErrorKind
[src]
impl Debug for GeneralErrorKind
impl Error for GeneralErrorKind
[src]
Auto Trait Implementations
impl Sync for GeneralErrorKind
impl Send for GeneralErrorKind
impl Unpin for GeneralErrorKind
impl UnwindSafe for GeneralErrorKind
impl RefUnwindSafe for GeneralErrorKind
Blanket Implementations
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
[src]
Scheme: ApproxScheme,
type Err = NoError
The error type produced by a failed conversion.
fn approx_from(Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
[src]
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
[src]
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
fn approx_into(Self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
[src]
impl<Src> TryFrom<Src> for Src
[src]
type Err = NoError
The error type produced by a failed conversion.
fn try_from(Src) -> Result<Src, <Src as TryFrom<Src>>::Err>
[src]
impl<Src, Dst> TryInto<Dst> for Src where
Dst: TryFrom<Src>,
[src]
Dst: TryFrom<Src>,
type Err = <Dst as TryFrom<Src>>::Err
The error type produced by a failed conversion.
fn try_into(Self) -> Result<Dst, <Src as TryInto<Dst>>::Err>
[src]
impl<Src> ValueFrom<Src> for Src
[src]
type Err = NoError
The error type produced by a failed conversion.
fn value_from(Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
[src]
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
[src]
Dst: ValueFrom<Src>,
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
fn value_into(Self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
[src]
impl<T> ConvUtil for T
[src]
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: Sized + ApproxInto<Dst>,
[src]
Self: Sized + ApproxInto<Dst>,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
[src]
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn into_as<Dst>(self) -> Dst where
Self: Sized + Into<Dst>,
[src]
Self: Sized + Into<Dst>,
fn try_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: Sized + TryInto<Dst>,
[src]
Self: Sized + TryInto<Dst>,
fn value_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: Sized + ValueInto<Dst>,
[src]
Self: Sized + ValueInto<Dst>,
impl<T, Dst> ConvAsUtil<Dst> for T
[src]
fn approx(self) -> Result<Dst, Self::Err> where
Self: Sized + ApproxInto<Dst>,
[src]
Self: Sized + ApproxInto<Dst>,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
[src]
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,