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<VolatileMemoryError> for VolatileMemoryError
impl PartialEq<VolatileMemoryError> 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 ==.