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
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.
Trait Implementations
impl Clone for ErrorReason
[src]
fn clone(&self) -> ErrorReason
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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
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
This method tests for !=
.
impl Eq for ErrorReason
[src]
impl Hash for ErrorReason
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.