pub struct LocalFunction<'a> {
pub ty_id: TypeID,
pub func_id: FunctionID,
pub instr_flag: FuncInstrFlag<'a>,
pub body: Body<'a>,
pub args: Vec<LocalID>,
}
Expand description
Intermediate Representation of a Local Function
Fields§
§ty_id: TypeID
§func_id: FunctionID
§instr_flag: FuncInstrFlag<'a>
§body: Body<'a>
§args: Vec<LocalID>
Implementations§
Source§impl<'a> LocalFunction<'a>
impl<'a> LocalFunction<'a>
Sourcepub fn new(
type_id: TypeID,
function_id: FunctionID,
body: Body<'a>,
num_args: usize,
) -> Self
pub fn new( type_id: TypeID, function_id: FunctionID, body: Body<'a>, num_args: usize, ) -> Self
Creates a new local function
pub fn add_local(&mut self, ty: DataType) -> LocalID
pub fn add_instr(&mut self, instr: Operator<'a>, instr_idx: usize)
pub fn clear_instr_at(&mut self, instr_idx: usize, mode: InstrumentationMode)
Trait Implementations§
Source§impl<'a> Clone for LocalFunction<'a>
impl<'a> Clone for LocalFunction<'a>
Source§fn clone(&self) -> LocalFunction<'a>
fn clone(&self) -> LocalFunction<'a>
Returns a copy 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<'a> Freeze for LocalFunction<'a>
impl<'a> RefUnwindSafe for LocalFunction<'a>
impl<'a> Send for LocalFunction<'a>
impl<'a> Sync for LocalFunction<'a>
impl<'a> Unpin for LocalFunction<'a>
impl<'a> UnwindSafe for LocalFunction<'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