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

The piece is empty. Ordinarily this means the piece has been optimized away.

The piece is found in a register.

Fields of Register

The register number.

The piece is found in memory.

Fields of Address

The address.

The piece has no location but its value is known.

Fields of Value

The value.

The piece is represented by some constant bytes.

Fields of Bytes

The value.

The piece is a pointer to a value which has no actual location.

Fields of ImplicitPointer

The .debug_info offset of the value that this is an implicit pointer into.

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]

Return true if the piece is empty.

Trait Implementations

impl<R: Debug, Offset: Debug> Debug for Location<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

Formats 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]

Returns a copy of the value. Read more

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: PartialEq, Offset: PartialEq> PartialEq for Location<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<R, Offset> Send for Location<R, Offset> where
    Offset: Send,
    R: Send

impl<R, Offset> Sync for Location<R, Offset> where
    Offset: Sync,
    R: Sync