pub struct FuncBody {
pub locals: Vec<Local>,
pub code: Vec<Instruction>,
}
Expand description
Function body.
Function consist of declaration (signature, i.e. type reference) and the actual code. This part is the actual code.
Fields§
§locals: Vec<Local>
Function local variables (wasm stack).
code: Vec<Instruction>
Function code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FuncBody
impl !RefUnwindSafe for FuncBody
impl !Send for FuncBody
impl !Sync for FuncBody
impl Unpin for FuncBody
impl !UnwindSafe for FuncBody
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