You’re missing all of the reinterpret handling. Why not just make the dual_cache be one of the fields of the function?
BTW, this whole struct is not concretely typed and so it will be slow. And you might not want to <: Function for specialization.
You’re missing all of the reinterpret handling. Why not just make the dual_cache be one of the fields of the function?
BTW, this whole struct is not concretely typed and so it will be slow. And you might not want to <: Function for specialization.