Struct llvm_mapper::map::MapCtx[][src]

#[non_exhaustive]
pub struct MapCtx { /* fields omitted */ }
Expand description

A handle for various bits of state that are necessary for correct block and record mapping.

Internally, this is a mushy state object that may or may not contain sufficient information for parsing a particular block or record; hence the fallible access methods.

Block and record mapping operations are expected to update the supplied context, as appropriate.

Implementations

Returns the version stored in this context, or an error if no version is available.

A helper function for whether or not to use an associated string table for string lookups.

This corresponds to MODULE_CODE_VERSIONs of 2 and higher.

A helper function for determining how operands are encoded.

This corresponds to MODULE_CODE_VERSIONs of 1 and higher.

Returns the string table stored in this context, or an error if no string table is available.

Returns the attribute groups stored in this context, or an error if not available.

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

Performs the conversion.

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.