[][src]Struct gimli::write::DwarfUnit

pub struct DwarfUnit {
    pub unit: Unit,
    pub line_strings: LineStringTable,
    pub strings: StringTable,
}

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.

Methods

impl DwarfUnit[src]

pub fn new(encoding: Encoding) -> Self[src]

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.

pub fn write<W: Writer>(&mut self, sections: &mut Sections<W>) -> Result<()>[src]

Write the DWARf information to the given sections.

Trait Implementations

impl Debug for DwarfUnit[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]