pub struct IRFunction {
pub name: String,
pub params: Vec<String>,
pub locals_count: usize,
pub blocks: Vec<IRBlock>,
pub is_async: bool,
}Expand description
An IR function
Fields§
§name: StringFunction name
params: Vec<String>Parameter names
locals_count: usizeLocal variable count (for stack allocation)
blocks: Vec<IRBlock>Function body as basic blocks
is_async: boolIs this an async function?
Trait Implementations§
Source§impl Clone for IRFunction
impl Clone for IRFunction
Source§fn clone(&self) -> IRFunction
fn clone(&self) -> IRFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IRFunction
impl RefUnwindSafe for IRFunction
impl Send for IRFunction
impl Sync for IRFunction
impl Unpin for IRFunction
impl UnwindSafe for IRFunction
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