pub struct Function {
pub name: String,
pub params: Vec<Local>,
pub return_ty: Type,
pub locals: Vec<LocalDecl>,
pub blocks: Vec<BasicBlock>,
pub entry_block: BlockId,
}Expand description
A function in MIR representation
Fields§
§name: StringFunction name
params: Vec<Local>Parameters (as local variables)
return_ty: TypeReturn type
locals: Vec<LocalDecl>Local variables (including parameters)
blocks: Vec<BasicBlock>Basic blocks making up the function body
entry_block: BlockIdEntry block index
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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