Enum conv::errors::RangeErrorKind []

pub enum RangeErrorKind {
    NegOverflow,
    PosOverflow,
}

Indicates that a conversion failed due to a range error.

This is a variant of RangeError that does not retain the input value which caused the error. It exists to help unify some utility methods and should not generally be used directly, unless you are targeting the Unwrap* traits.

Variants

Input was too negative for the target type.

Input was too positive for the target type.

Trait Implementations

impl Copy for RangeErrorKind

impl Clone for RangeErrorKind

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for RangeErrorKind

impl PartialEq for RangeErrorKind

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

This method tests for !=.

impl Ord for RangeErrorKind

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

impl PartialOrd for RangeErrorKind

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 RangeErrorKind

Formats the value using the given formatter.

impl From<NoError> for RangeErrorKind
[src]

Performs the conversion.

impl Display for RangeErrorKind
[src]

Formats the value using the given formatter. Read more

impl Error for RangeErrorKind
[src]

A short description of the error. Read more

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

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.