pub struct FrameSymbol { /* private fields */ }
Expand description

Debug information for a symbol that is attached to a FrameInfo.

When DWARF debug information is present in a wasm file then this structure can be found on a FrameInfo and can be used to learn about filenames, line numbers, etc, which are the origin of a function in a stack trace.

Implementations

Returns the function name associated with this symbol.

Note that this may not be present with malformed debug information, or the debug information may not include it. Also note that the symbol is frequently mangled, so you might need to run some form of demangling over it.

Returns the source code filename this symbol was defined in.

Note that this may not be present with malformed debug information, or the debug information may not include it.

Returns the 1-indexed source code line number this symbol was defined on.

Note that this may not be present with malformed debug information, or the debug information may not include it.

Returns the 1-indexed source code column number this symbol was defined on.

Note that this may not be present with malformed debug information, or the debug information may not include it.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more