Enum bytemuck::checked::CheckedCastError  
source · [−]pub enum CheckedCastError {
    PodCastError(PodCastError),
    InvalidBitPattern,
}Expand description
The things that can go wrong when casting between CheckedBitPattern data
forms.
Variants
PodCastError(PodCastError)
An error occurred during a true-[Pod] cast
InvalidBitPattern
When casting to a CheckedBitPattern type, it is possible that the
original data contains an invalid bit pattern. If so, the cast will
fail and this error will be returned. Will never happen on casts
between [Pod] types.
Trait Implementations
sourceimpl Clone for CheckedCastError
 
impl Clone for CheckedCastError
sourcefn clone(&self) -> CheckedCastError
 
fn clone(&self) -> CheckedCastError
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 more
sourceimpl Debug for CheckedCastError
 
impl Debug for CheckedCastError
sourceimpl Display for CheckedCastError
 
impl Display for CheckedCastError
sourceimpl From<PodCastError> for CheckedCastError
 
impl From<PodCastError> for CheckedCastError
sourcefn from(err: PodCastError) -> CheckedCastError
 
fn from(err: PodCastError) -> CheckedCastError
Converts to this type from the input type.
sourceimpl Hash for CheckedCastError
 
impl Hash for CheckedCastError
sourceimpl PartialEq<CheckedCastError> for CheckedCastError
 
impl PartialEq<CheckedCastError> for CheckedCastError
sourcefn eq(&self, other: &CheckedCastError) -> bool
 
fn eq(&self, other: &CheckedCastError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CheckedCastError) -> bool
 
fn ne(&self, other: &CheckedCastError) -> bool
This method tests for !=.
impl Copy for CheckedCastError
impl Eq for CheckedCastError
impl StructuralEq for CheckedCastError
impl StructuralPartialEq for CheckedCastError
Auto Trait Implementations
impl RefUnwindSafe for CheckedCastError
impl Send for CheckedCastError
impl Sync for CheckedCastError
impl Unpin for CheckedCastError
impl UnwindSafe for CheckedCastError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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