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

Mapping from entity names to source locations.

Implementations

Read-only interface which is exposed outside the parser crate.

Look up a value entity.

Look up a block entity.

Look up a stack slot entity.

Look up a dynamic stack slot entity.

Look up a global value entity.

Look up a heap entity.

Look up a table entity.

Look up a signature entity.

Look up a function entity.

Look up a jump table entity.

Look up a constant entity.

Look up an entity by source name. Returns the entity reference corresponding to name, if it exists.

Get the source location where an entity was defined.

Create a new empty SourceMap.

Define the value entity.

Define the block entity.

Define the stack slot entity.

Define the dynamic stack slot entity.

Define the dynamic type entity.

Define the global value entity.

Define the heap entity.

Define the table entity.

Define the signature entity.

Define the external function entity.

Define the jump table entity.

Define the jump table entity.

Define an entity. This can be used for instructions whose numbers never appear in source, or implicitly defined signatures.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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 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.