Enum gimli::AttributeValue [] [src]

pub enum AttributeValue<'input> {
    Addr(&'input [u8]),
    Block(&'input [u8]),
    Data(&'input [u8]),
    Sdata(i64),
    Udata(u64),
    Exprloc(&'input [u8]),
    Flag(bool),
    SecOffset(u64),
    UnitRef(UnitOffset),
    DebugInfoRef(DebugInfoOffset),
    DebugTypesRef(DebugTypesOffset),
    DebugStrRef(DebugStrOffset),
    String(&'input CStr),
}

The value of an attribute in a DebuggingInformationEntry.

Variants

Addr(&'input [u8])

A slice that is UnitHeaderHeader::address_size bytes long.

Block(&'input [u8])

A slice of an arbitrary number of bytes.

Data(&'input [u8])

A one, two, four, or eight byte constant data value. How to interpret the bytes depends on context.

From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."

Sdata(i64)

A signed integer constant.

Udata(u64)

An unsigned integer constant.

Exprloc(&'input [u8])

"The information bytes contain a DWARF expression (see Section 2.5) or location description (see Section 2.6)."

Flag(bool)

A boolean typically used to describe the presence or absence of another attribute.

SecOffset(u64)

An offset into another section. Which section this is an offset into depends on context.

UnitRef(UnitOffset)

An offset into the current compilation unit.

DebugInfoRef(DebugInfoOffset)

An offset into the current .debug_info section, but possibly a different compilation unit from the current one.

DebugTypesRef(DebugTypesOffset)

An offset into the .debug_types section.

DebugStrRef(DebugStrOffset)

An offset into the .debug_str section.

String(&'input CStr)

A null terminated C string, including the final null byte. Not guaranteed to be UTF-8 or anything like that.

Trait Implementations

impl<'input> PartialEq for AttributeValue<'input>
[src]

fn eq(&self, __arg_0: &AttributeValue<'input>) -> bool

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

fn ne(&self, __arg_0: &AttributeValue<'input>) -> bool

This method tests for !=.

impl<'input> Eq for AttributeValue<'input>
[src]

impl<'input> Debug for AttributeValue<'input>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'input> Copy for AttributeValue<'input>
[src]

impl<'input> Clone for AttributeValue<'input>
[src]

fn clone(&self) -> AttributeValue<'input>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more