dyon icon indicating copy to clipboard operation
dyon copied to clipboard

How can one call a Dyon Closure from Rust?

Open cedric-h opened this issue 6 years ago • 4 comments

If you call a Dyon function that returns a closure, how can one call this closure from Rust later? I've looked around in the docs and I've found CallClosure, and I've seen the method on the Runtime which calls a CallClosure, but how does one go from Closure to CallClosure?

cedric-h avatar May 19 '19 01:05 cedric-h

There is no easy way to do this currently.

bvssvni avatar May 19 '19 11:05 bvssvni

It just has not been worked on yet.

bvssvni avatar May 19 '19 11:05 bvssvni

Well... shucks, if you give me an outline on how this could be done I'd be more than willing to do the grunt work.

cedric-h avatar May 19 '19 13:05 cedric-h

One idea is to add methods to Call:

  • call_closure
  • call_closure_vec4

bvssvni avatar May 19 '19 14:05 bvssvni