Struct gimli::Attribute [] [src]

pub struct Attribute<R: Reader> { /* fields omitted */ }

An attribute in a DebuggingInformationEntry, consisting of a name and associated value.

Methods

impl<R: Reader> Attribute<R>
[src]

Get this attribute's name.

Get this attribute's raw value.

Get this attribute's normalized value.

Attribute values can potentially be encoded in multiple equivalent forms, and may have special meaning depending on the attribute name. This method converts the attribute value to a normalized form based on the attribute name.

See "Figure 20. Attribute encodings" and "Figure 21. Attribute form encodings".

Try to convert this attribute's value to a u8.

Try to convert this attribute's value to a u16.

Try to convert this attribute's value to an unsigned integer.

Try to convert this attribute's value to a signed integer.

Try to convert this attribute's value to an offset.

Offsets will be Data in DWARF version 2/3, and SecOffset otherwise.

Try to return this attribute's value as a string slice.

If this attribute's value is either an inline DW_FORM_string string, or a DW_FORM_strp reference to an offset into the .debug_str section, return the attribute's string value as Some. Other attribute value forms are returned as None.

Trait Implementations

impl<R: Copy + Reader> Copy for Attribute<R>
[src]

impl<R: Clone + Reader> Clone for Attribute<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: Debug + Reader> Debug for Attribute<R>
[src]

Formats the value using the given formatter.

impl<R: Eq + Reader> Eq for Attribute<R>
[src]

impl<R: PartialEq + Reader> PartialEq for Attribute<R>
[src]

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

This method tests for !=.