pub struct UnitHeader<R, Offset = <R as Reader>::Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
{ /* private fields */ }
Expand description

The common fields for the headers of compilation units and type units.

Implementations

Static methods.

Construct a new UnitHeader.

Instance methods.

Get the offset of this unit within its section.

Return the serialized size of the common unit header for the given DWARF format.

Get the length of the debugging info for this compilation unit, not including the byte length of the encoded length itself.

Get the length of the debugging info for this compilation unit, including the byte length of the encoded length itself.

Return the encoding parameters for this unit.

Get the DWARF version of the debugging info for this compilation unit.

Get the UnitType of this unit.

The offset into the .debug_abbrev section for this compilation unit’s debugging information entries’ abbreviations.

The size of addresses (in bytes) in this compilation unit.

Whether this compilation unit is encoded in 64- or 32-bit DWARF.

The serialized size of the header for this compilation unit.

Get the underlying bytes for the supplied range.

Get the underlying bytes for the supplied range.

Get the underlying bytes for the supplied range.

Read the DebuggingInformationEntry at the given offset.

Navigate this unit’s DebuggingInformationEntrys.

Navigate this compilation unit’s DebuggingInformationEntrys starting at the given offset.

Navigate this unit’s DebuggingInformationEntrys as a tree starting at the given offset.

Read the raw data that defines the Debugging Information Entries.

Parse this unit’s abbreviations.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.