Enum base::VolatileMemoryError
source · pub enum VolatileMemoryError {
OutOfBounds {
addr: usize,
},
Overflow {
base: usize,
offset: usize,
},
}
Variants§
OutOfBounds
addr
is out of bounds of the volatile memory slice.
Overflow
Taking a slice at base
with offset
would overflow usize
.
Trait Implementations§
source§impl Debug for VolatileMemoryError
impl Debug for VolatileMemoryError
source§impl Display for VolatileMemoryError
impl Display for VolatileMemoryError
source§impl Error for VolatileMemoryError
impl Error for VolatileMemoryError
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
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 PartialEq for VolatileMemoryError
impl PartialEq for VolatileMemoryError
source§fn eq(&self, other: &VolatileMemoryError) -> bool
fn eq(&self, other: &VolatileMemoryError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VolatileMemoryError
impl StructuralPartialEq for VolatileMemoryError
Auto Trait Implementations§
impl RefUnwindSafe for VolatileMemoryError
impl Send for VolatileMemoryError
impl Sync for VolatileMemoryError
impl Unpin for VolatileMemoryError
impl UnwindSafe for VolatileMemoryError
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