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
NotEnoughBytes
Too few bytes to fill even one instance of a type.
TooManyBytes
Too many bytes to fill a type.
Currently unused.
InexactByteCount
The byte amount received is not the same as the type's size.
InvalidValue
The byte count is fine, but the data contains an invalid value for the target type.
Trait Implementations
impl Clone for ErrorReason
[src]
fn clone(&self) -> ErrorReason
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ErrorReason
[src]
impl Debug for ErrorReason
[src]
impl PartialEq for ErrorReason
[src]
fn eq(&self, __arg_0: &ErrorReason) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.