Enum cast::Error [] [src]

pub enum Error {
    Infinite,
    NaN,
    Overflow,
    Underflow,
}

Cast errors

Variants

Infinite value casted to a type that can only represent finite values

NaN value casted to a type that can't represent a NaN value

Source value is greater than the maximum value that the destination type can hold

Source value is smaller than the minimum value that the destination type can hold

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Eq for Error
[src]

impl PartialEq for Error
[src]

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

This method tests for !=.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

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