Enum bytemuck::checked::CheckedCastError [−][src]
pub enum CheckedCastError {
PodCastError(PodCastError),
InvalidBitPattern,
}
Expand description
The things that can go wrong when casting between CheckedBitPattern
data forms.
Variants
PodCastError(PodCastError)
Tuple Fields
0: 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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more