Struct rust_debug::source_information::SourceInformation[][src]

pub struct SourceInformation {
    pub directory: Option<String>,
    pub file: Option<String>,
    pub line: Option<u64>,
    pub column: Option<u64>,
}
Expand description

Contains all the information about where the code was declared in the source code.

Fields

directory: Option<String>

The source code directory where the debug information was declared.

file: Option<String>

The relative source code file path where the debug information was declared.

line: Option<u64>

The source code line number where the debug information was declared.

column: Option<u64>

The source code column number where the debug information was declared.

Implementations

Retrieves the information about where the given DIE was declared in the source code.

Description:

  • dwarf - A reference to gimli-rs Dwarf struct.
  • unit - A reference to gimli-rs Unit struct, which the given DIE is located in.
  • die - A reference to the DIE containing attributes starting with DW_AT_decl_.
  • cwd - The work directory of the debugged program.

This function will retrieve the information stored in the attributes starting with DW_AT_decl_ from the given DIE>

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

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)

recently added

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.