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
sourceimpl FunctionBuilderContext
impl FunctionBuilderContext
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a FunctionBuilderContext structure. The structure is automatically cleared after
each FunctionBuilder
completes translating a function.
Auto Trait Implementations
impl RefUnwindSafe for FunctionBuilderContext
impl Send for FunctionBuilderContext
impl Sync for FunctionBuilderContext
impl Unpin for FunctionBuilderContext
impl UnwindSafe for FunctionBuilderContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more