Enum conv::errors::GeneralErrorKind []

pub enum GeneralErrorKind {
    NegOverflow,
    PosOverflow,
    Unrepresentable,
}

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

Input was too negative for the target type.

Input was too positive for the target type.

Input was not representable in the target type.

Trait Implementations

impl Copy for GeneralErrorKind

impl Clone for GeneralErrorKind

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for GeneralErrorKind

impl PartialEq for GeneralErrorKind

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for GeneralErrorKind

This method returns an Ordering between self and other. Read more

impl PartialOrd for GeneralErrorKind

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for GeneralErrorKind

Formats the value using the given formatter.

impl From<NoError> for GeneralErrorKind
[src]

Performs the conversion.

impl Display for GeneralErrorKind
[src]

Formats the value using the given formatter. Read more

impl Error for GeneralErrorKind
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<T> From<Unrepresentable<T>> for GeneralErrorKind
[src]

Performs the conversion.

impl<T> From<NegOverflow<T>> for GeneralErrorKind
[src]

Performs the conversion.

impl<T> From<PosOverflow<T>> for GeneralErrorKind
[src]

Performs the conversion.

impl From<RangeErrorKind> for GeneralErrorKind
[src]

Performs the conversion.

impl<T> From<RangeError<T>> for GeneralErrorKind
[src]

Performs the conversion.

impl<T> From<GeneralError<T>> for GeneralErrorKind
[src]

Performs the conversion.

impl<T> From<FloatError<T>> for GeneralErrorKind
[src]

Performs the conversion.