Struct FunctionBuilderContext
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§
§impl FunctionBuilderContext
impl FunctionBuilderContext
pub fn new() -> FunctionBuilderContext
pub fn new() -> FunctionBuilderContext
Creates a FunctionBuilderContext
structure. The structure is automatically cleared after
each FunctionBuilder
completes translating a function.
Trait Implementations§
§impl Default for FunctionBuilderContext
impl Default for FunctionBuilderContext
§fn default() -> FunctionBuilderContext
fn default() -> FunctionBuilderContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FunctionBuilderContext
impl RefUnwindSafe for FunctionBuilderContext
impl Send for FunctionBuilderContext
impl Sync for FunctionBuilderContext
impl Unpin for FunctionBuilderContext
impl UnwindSafe for FunctionBuilderContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more