Enum safe_transmute::ErrorReason
source · pub enum ErrorReason {
NotEnoughBytes,
TooManyBytes,
InexactByteCount,
}
Expand description
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.
Implementations
sourceimpl ErrorReason
impl ErrorReason
sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
Retrieve a human readable description of the reason.
Trait Implementations
sourceimpl Clone for ErrorReason
impl Clone for ErrorReason
sourcefn clone(&self) -> ErrorReason
fn clone(&self) -> ErrorReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ErrorReason
impl Debug for ErrorReason
sourceimpl Hash for ErrorReason
impl Hash for ErrorReason
sourceimpl PartialEq<ErrorReason> for ErrorReason
impl PartialEq<ErrorReason> for ErrorReason
sourcefn eq(&self, other: &ErrorReason) -> bool
fn eq(&self, other: &ErrorReason) -> bool
impl Copy for ErrorReason
impl Eq for ErrorReason
impl StructuralEq for ErrorReason
impl StructuralPartialEq for ErrorReason
Auto Trait Implementations
impl RefUnwindSafe for ErrorReason
impl Send for ErrorReason
impl Sync for ErrorReason
impl Unpin for ErrorReason
impl UnwindSafe for ErrorReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more