Enum safe_transmute::ErrorReason [] [src]

pub enum ErrorReason {
    NotEnoughBytes,
    TooManyBytes,
    InexactByteCount,
    InvalidValue,
}

How the type's size compares to the received byte count and the transmutation function's characteristic.

Variants

Too few bytes to fill even one instance of a type.

Too many bytes to fill a type.

Currently unused.

The byte amount received is not the same as the type's size.

The byte count is fine, but the data contains an invalid value for the target type.

Trait Implementations

impl Clone for ErrorReason
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ErrorReason
[src]

impl Debug for ErrorReason
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ErrorReason
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for ErrorReason
[src]

impl Hash for ErrorReason
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more