/// Adds a new local func to this section
Adds a new local func to this section
Adds a new local func to this section
pub fn add_local(&mut self, ty: TypeId, instrs: Vec<Instruction>) -> FuncId {
        self.arena.alloc_with_id(|id| Func {
            id,
            ty,
            kind: FuncKind::Local(instrs),
        })
    }
pub fn add_local ( & mut self , ty : TypeId , instrs : Vec < Instruction > ) -> FuncId { self . arena . alloc_with_id ( | id | Func { id , ty , kind : FuncKind :: Local ( instrs ) , } ) }
Adds a new local func to this section
Adds a new local func to this section
&mut self
ty
TypeId
instrs
Vec<Instruction>