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§
Source§impl 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§
Source§impl Clone for ErrorReason
impl Clone for ErrorReason
Source§fn clone(&self) -> ErrorReason
fn clone(&self) -> ErrorReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorReason
Source§impl Debug for ErrorReason
impl Debug for ErrorReason
impl Eq for ErrorReason
Source§impl Hash for ErrorReason
impl Hash for ErrorReason
Source§impl PartialEq for ErrorReason
impl PartialEq for ErrorReason
Source§fn eq(&self, other: &ErrorReason) -> bool
fn eq(&self, other: &ErrorReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ErrorReason
Auto Trait Implementations§
impl Freeze for ErrorReason
impl RefUnwindSafe for ErrorReason
impl Send for ErrorReason
impl Sync for ErrorReason
impl Unpin for ErrorReason
impl UnsafeUnpin for ErrorReason
impl UnwindSafe for ErrorReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more