pub struct ProcedureSymbol<'t> {
    pub global: bool,
    pub dpc: bool,
    pub parent: Option<SymbolIndex>,
    pub end: SymbolIndex,
    pub next: Option<SymbolIndex>,
    pub len: u32,
    pub dbg_start_offset: u32,
    pub dbg_end_offset: u32,
    pub type_index: TypeIndex,
    pub offset: PdbInternalSectionOffset,
    pub flags: ProcedureFlags,
    pub name: RawString<'t>,
}
Expand description

A procedure, such as a function or method.

Symbol kinds:

  • S_GPROC32, S_GPROC32_ST for global procedures
  • S_LPROC32, S_LPROC32_ST for local procedures
  • S_LPROC32_DPC for DPC procedures
  • S_GPROC32_ID, S_LPROC32_ID, S_LPROC32_DPC_ID for procedures referencing types from the ID stream rather than the Type stream.

Fields

global: bool

Whether this is a global or local procedure.

dpc: bool

Indicates Deferred Procedure Calls (DPC).

parent: Option<SymbolIndex>

The parent scope that this procedure is nested in.

end: SymbolIndex

The end symbol of this procedure.

next: Option<SymbolIndex>

The next procedure symbol.

len: u32

The length of the code block covered by this procedure.

dbg_start_offset: u32

Start offset of the procedure’s body code, which marks the end of the prologue.

dbg_end_offset: u32

End offset of the procedure’s body code, which marks the start of the epilogue.

type_index: TypeIndex

Identifier of the procedure type.

The type contains the complete signature, including parameters, modifiers and the return type.

offset: PdbInternalSectionOffset

Code offset of the start of this procedure.

flags: ProcedureFlags

Detailed flags of this procedure.

name: RawString<'t>

The full, demangled name of the procedure.

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

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 resulting type after obtaining ownership.

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

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.