Struct gimli::write::Unit[][src]

pub struct Unit {
    pub line_program: LineProgram,
    pub ranges: RangeListTable,
    pub locations: LocationListTable,
    // some fields omitted
}
Expand description

A unit’s debugging information.

Fields

line_program: LineProgram

The line number program for this unit.

ranges: RangeListTable

A table of range lists used by this unit.

locations: LocationListTable

A table of location lists used by this unit.

Implementations

Create a new Unit.

Return the encoding parameters for this unit.

Return the DWARF version for this unit.

Return the address size in bytes for this unit.

Return the DWARF format for this unit.

Return the number of DebuggingInformationEntrys created for this unit.

This includes entries that no longer have a parent.

Return the id of the root entry.

Add a new DebuggingInformationEntry to this unit and return its id.

The parent must be within the same unit.

Panics

Panics if parent is invalid.

Get a reference to an entry.

Panics

Panics if id is invalid.

Get a mutable reference to an entry.

Panics

Panics if id is invalid.

Trait Implementations

Formats the value using the given formatter. Read more

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 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.