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

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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.