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

Structure used for translating a series of functions into Cranelift IR.

In order to reduce memory reallocations when compiling multiple functions, FunctionBuilderContext holds various data structures which are cleared between functions, rather than dropped, preserving the underlying allocations.

Implementations

Creates a FunctionBuilderContext structure. The structure is automatically cleared after each FunctionBuilder completes translating a function.

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.