pub enum AdjustedAddress {
NonCanonical(Address),
NullPointerWithOffset(AddressOffset),
}
Expand description
Info about a memory address that was adjusted from its reported value
There will be situations where the memory address reported by the OS is sub-optimal for
debugging purposes, such as when an array is accidently indexed into with a null pointer base,
at which point the address might read something like 0x00001000
when the more-useful address
would just be zero.
If such a correction was made, this will be included in ExceptionInfo
.
Variants§
NonCanonical(Address)
The original access was an Amd64 “non-canonical” address; actual address is provided here.
NullPointerWithOffset(AddressOffset)
The base pointer was null; offset from base is provided here.
Trait Implementations§
source§impl Clone for AdjustedAddress
impl Clone for AdjustedAddress
source§fn clone(&self) -> AdjustedAddress
fn clone(&self) -> AdjustedAddress
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 AdjustedAddress
impl Debug for AdjustedAddress
source§impl PartialEq for AdjustedAddress
impl PartialEq for AdjustedAddress
source§fn eq(&self, other: &AdjustedAddress) -> bool
fn eq(&self, other: &AdjustedAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AdjustedAddress
impl StructuralPartialEq for AdjustedAddress
Auto Trait Implementations§
impl RefUnwindSafe for AdjustedAddress
impl Send for AdjustedAddress
impl Sync for AdjustedAddress
impl Unpin for AdjustedAddress
impl UnwindSafe for AdjustedAddress
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