Struct gimli::write::DwarfUnit

source ·
pub struct DwarfUnit {
    pub unit: Unit,
    pub line_strings: LineStringTable,
    pub strings: StringTable,
}
Expand description

Writable DWARF information for a single unit.

Fields§

§unit: Unit

A unit. This is primarily stored in the .debug_info section, but also contains information that is stored in other sections.

§line_strings: LineStringTable

A table of strings that will be stored in the .debug_line_str section.

§strings: StringTable

A table of strings that will be stored in the .debug_str section.

Implementations§

Create a new DwarfUnit.

Note: you should set self.unit.line_program after creation. This cannot be done earlier because it may need to reference self.line_strings.

Write the DWARf information to the given sections.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.