Struct safe_transmute::error::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§
source§impl Clone for GuardError
impl Clone for GuardError
source§fn clone(&self) -> GuardError
fn clone(&self) -> GuardError
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 GuardError
impl Debug for GuardError
source§impl Display for GuardError
impl Display for GuardError
source§impl Error for GuardError
impl Error for GuardError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl<'a, S, T> From<GuardError> for Error<'a, S, T>
impl<'a, S, T> From<GuardError> for Error<'a, S, T>
source§fn from(o: GuardError) -> Self
fn from(o: GuardError) -> Self
Converts to this type from the input type.
source§impl Hash for GuardError
impl Hash for GuardError
source§impl PartialEq for GuardError
impl PartialEq for GuardError
source§fn eq(&self, other: &GuardError) -> bool
fn eq(&self, other: &GuardError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GuardError
impl Eq for GuardError
impl StructuralPartialEq for GuardError
Auto Trait Implementations§
impl Freeze for GuardError
impl RefUnwindSafe for GuardError
impl Send for GuardError
impl Sync for GuardError
impl Unpin for GuardError
impl UnwindSafe for GuardError
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