Struct xbe::AddressInfo [−][src]
pub struct AddressInfo<'a> { /* fields omitted */ }
Info for a virtual address in the XBE memory map.
This is suitable for user display, but probably most useful as a crash or
debug helper since the Display
output is very technical. Using {:?}
is
not recommended.
Note that if the address is not inside one of the static XBE sections, the output will be pretty useless. It is recommended to check the address against system-managed resources before using this (eg. stack, heap, kernel space).
Methods
impl<'a> AddressInfo<'a>
[src]
impl<'a> AddressInfo<'a>
pub fn virt_addr(&self) -> u32
[src]
pub fn virt_addr(&self) -> u32
The virtual address for which this information was determined.
pub fn offset(&self) -> Option<u32>
[src]
pub fn offset(&self) -> Option<u32>
Returns the offset of virt_addr
into its containing section.
Returns None
if virt_addr
is not inside any section of the XBE.
pub fn section(&self) -> Option<&Section<'a>>
[src]
pub fn section(&self) -> Option<&Section<'a>>
Returns the section containing the virtual address.
Returns None
if virt_addr
is not inside any section of the XBE.
Trait Implementations
impl<'a> Debug for AddressInfo<'a>
[src]
impl<'a> Debug for AddressInfo<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Display for AddressInfo<'a>
[src]
impl<'a> Display for AddressInfo<'a>
Auto Trait Implementations
impl<'a> Send for AddressInfo<'a>
impl<'a> Send for AddressInfo<'a>
impl<'a> Sync for AddressInfo<'a>
impl<'a> Sync for AddressInfo<'a>