pub struct Function {
pub name: String,
pub params: Vec<String>,
pub instructions: Vec<Instruction>,
pub locals: Vec<String>,
}Expand description
IR function
Fields§
§name: StringFunction name
params: Vec<String>Parameters
instructions: Vec<Instruction>Instructions
locals: Vec<String>Local variables
Trait Implementations§
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin 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