Enum gimli::Location
[−]
[src]
pub enum Location<R, Offset = usize> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, { Empty, Register { register: u64, }, Address { address: u64, }, Scalar { value: u64, }, Bytes { value: R, }, ImplicitPointer { value: DebugInfoOffset<Offset>, byte_offset: i64, }, }
A single location of a piece of the result of a DWARF expression.
Variants
Empty
The piece is empty. Ordinarily this means the piece has been optimized away.
Register
The piece is found in a register.
Fields of Register
register: u64 | The register number. |
Address
The piece is found in memory.
Fields of Address
address: u64 | The address. |
Scalar
The piece is a scalar value.
Fields of Scalar
value: u64 | The value. |
Bytes
The piece is represented by some constant bytes.
Fields of Bytes
value: R | The value. |
ImplicitPointer
The 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]
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]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Clone, Offset: Clone> Clone for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn clone(&self) -> Location<R, Offset>
[src]
Returns a copy of the value. Read more
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]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: PartialEq, Offset: PartialEq> PartialEq for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn eq(&self, __arg_0: &Location<R, Offset>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Location<R, Offset>) -> bool
[src]
This method tests for !=
.
impl<R: Eq, Offset: Eq> Eq for Location<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,