Enum gimli::Location [−][src]
pub enum Location<R, Offset = usize> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, { Empty, Register { register: u64, }, Address { address: u64, }, Value { value: Value, }, Bytes { value: R, }, ImplicitPointer { value: DebugInfoOffset<Offset>, byte_offset: i64, }, }
A single location of a piece of the result of a DWARF expression.
Variants
EmptyThe piece is empty. Ordinarily this means the piece has been optimized away.
RegisterThe piece is found in a register.
Fields of Register
register: u64 | The register number. |
AddressThe piece is found in memory.
Fields of Address
address: u64 | The address. |
ValueThe piece has no location but its value is known.
Fields of Value
value: Value | The value. |
BytesThe piece is represented by some constant bytes.
Fields of Bytes
value: R | The value. |
ImplicitPointerThe piece is a pointer to a value which has no actual location.
Fields of ImplicitPointer
value: DebugInfoOffset<Offset> | The |
byte_offset: i64 | The byte offset into the value that the implicit pointer points to. |
Methods
impl<R, Offset> Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, [src]
impl<R, Offset> Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, Trait Implementations
impl<R: Debug, Offset: Debug> Debug for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, [src]
impl<R: Debug, Offset: Debug> Debug for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: Clone, Offset: Clone> Clone for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, [src]
impl<R: Clone, Offset: Clone> Clone for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, fn clone(&self) -> Location<R, Offset>[src]
fn clone(&self) -> Location<R, Offset>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<R: Copy, Offset: Copy> Copy for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, [src]
impl<R: Copy, Offset: Copy> Copy for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, impl<R: PartialEq, Offset: PartialEq> PartialEq for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, [src]
impl<R: PartialEq, Offset: PartialEq> PartialEq for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,