pub struct RegFunc {
pub idx: FuncIdx,
pub type_idx: TypeIdx,
pub params: Vec<ValType>,
pub results: Vec<ValType>,
pub locals: Vec<ValType>,
pub reg_types: Vec<ValType>,
pub blocks: Vec<RegBlock>,
}Expand description
A defined function lowered into register IR.
Fields§
§idx: FuncIdx§type_idx: TypeIdx§params: Vec<ValType>§results: Vec<ValType>§locals: Vec<ValType>All locals in function-index order: parameters first, then code-section locals.
reg_types: Vec<ValType>Type of each virtual register allocated while lowering this function.
blocks: Vec<RegBlock>Basic blocks in execution order.
Trait Implementations§
impl StructuralPartialEq for RegFunc
Auto Trait Implementations§
impl Freeze for RegFunc
impl RefUnwindSafe for RegFunc
impl Send for RegFunc
impl Sync for RegFunc
impl Unpin for RegFunc
impl UnsafeUnpin for RegFunc
impl UnwindSafe for RegFunc
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