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§
Source§impl Clone for CheckedCastError
impl Clone for CheckedCastError
Source§fn clone(&self) -> CheckedCastError
fn clone(&self) -> CheckedCastError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CheckedCastError
impl Debug for CheckedCastError
Source§impl Display for CheckedCastError
impl Display for CheckedCastError
Source§impl Error for CheckedCastError
Available on crate feature extern_crate_std
only.
impl Error for CheckedCastError
Available on crate feature
extern_crate_std
only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<PodCastError> for CheckedCastError
impl From<PodCastError> for CheckedCastError
Source§fn from(err: PodCastError) -> CheckedCastError
fn from(err: PodCastError) -> CheckedCastError
Converts to this type from the input type.
Source§impl Hash for CheckedCastError
impl Hash for CheckedCastError
Source§impl PartialEq for CheckedCastError
impl PartialEq for CheckedCastError
impl Copy for CheckedCastError
impl Eq for CheckedCastError
impl StructuralPartialEq for CheckedCastError
Auto Trait Implementations§
impl Freeze for CheckedCastError
impl RefUnwindSafe for CheckedCastError
impl Send for CheckedCastError
impl Sync for CheckedCastError
impl Unpin for CheckedCastError
impl UnwindSafe for CheckedCastError
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