Struct safe_transmute::GuardError
source · pub struct GuardError {
pub required: usize,
pub actual: usize,
pub reason: ErrorReason,
}
Expand description
Fields
required: usize
The required amount of bytes for transmutation.
actual: usize
The actual amount of bytes.
reason: ErrorReason
Why this required
/actual
/T
combo is an error.
Trait Implementations
sourceimpl Clone for GuardError
impl Clone for GuardError
sourcefn clone(&self) -> GuardError
fn clone(&self) -> GuardError
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 GuardError
impl Debug for GuardError
sourceimpl Display for GuardError
impl Display for GuardError
sourceimpl Error for GuardError
impl Error for GuardError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<GuardError> for Error
impl From<GuardError> for Error
sourcefn from(o: GuardError) -> Error
fn from(o: GuardError) -> Error
Converts to this type from the input type.
sourceimpl Hash for GuardError
impl Hash for GuardError
sourceimpl PartialEq<GuardError> for GuardError
impl PartialEq<GuardError> for GuardError
sourcefn eq(&self, other: &GuardError) -> bool
fn eq(&self, other: &GuardError) -> bool
impl Copy for GuardError
impl Eq for GuardError
impl StructuralEq for GuardError
impl StructuralPartialEq for GuardError
Auto Trait Implementations
impl RefUnwindSafe for GuardError
impl Send for GuardError
impl Sync for GuardError
impl Unpin for GuardError
impl UnwindSafe for GuardError
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