/// Construct a dummy function for the given function type
Construct a dummy function for the given function type
Construct a dummy function for the given function type
pub fn dummy_func(store: &Store, ty: FuncType) -> Func {
    Func::new(store, ty.clone(), move |_, _, results| {
        for (ret_ty, result) in ty.results().zip(results) {
            *result = dummy_value(ret_ty)?;
        }
        Ok(())
    })
}
pub fn dummy_func ( store : & Store , ty : FuncType ) -> Func { Func :: new ( store , ty . clone ( ) , move | _ , _ , results | { for ( ret_ty , result ) in ty . results ( ) . zip ( results ) { * result = dummy_value ( ret_ty ) ? ; } Ok ( ( ) ) } ) }
Construct a dummy function for the given function type
Construct a dummy function for the given function type
store
&Store
ty
FuncType