pub struct FunctionCodeGen<'a> { /* private fields */ }Implementations§
Source§impl<'a> FunctionCodeGen<'a>
impl<'a> FunctionCodeGen<'a>
pub fn new(state: &'a mut CodeGenState, fn_id: InternalFunctionId) -> Self
pub fn reserve(ty: &Type, allocator: &mut ScopeAllocator) -> FrameMemoryRegion
pub fn layout_variables( &mut self, variables: &Vec<VariableRef>, return_type: &Type, )
pub fn temp_memory_region_for_type( &mut self, ty: &Type, comment: &str, ) -> FrameMemoryRegion
pub fn temp_space_for_type(&mut self, ty: &Type, comment: &str) -> Context
Sourcepub fn gen_expression_for_access(
&mut self,
expr: &Expression,
ctx: &Context,
) -> FrameMemoryRegion
pub fn gen_expression_for_access( &mut self, expr: &Expression, ctx: &Context, ) -> FrameMemoryRegion
§Panics
pub fn gen_expression(&mut self, expr: &Expression, ctx: &Context)
Auto Trait Implementations§
impl<'a> Freeze for FunctionCodeGen<'a>
impl<'a> RefUnwindSafe for FunctionCodeGen<'a>
impl<'a> !Send for FunctionCodeGen<'a>
impl<'a> !Sync for FunctionCodeGen<'a>
impl<'a> Unpin for FunctionCodeGen<'a>
impl<'a> !UnwindSafe for FunctionCodeGen<'a>
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