Enum safe_transmute::ErrorReason [] [src]

pub enum ErrorReason {
    NotEnoughBytes,
    TooManyBytes,
    InexactByteCount,
}

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.

Trait Implementations

impl Clone for ErrorReason
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ErrorReason
[src]

impl Debug for ErrorReason
[src]

Formats the value using the given formatter.

impl PartialEq for ErrorReason
[src]

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

This method tests for !=.

impl Eq for ErrorReason
[src]

impl Hash for ErrorReason
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.