Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    @IvanTemchenko Maybe? Here is some code for you to play with: play.rust-lang.org/… Commented Dec 18, 2020 at 6:25
  • that's not exactly what I meant =) Found workaround to return dyn closure which captures self's state so I dont need to pass instance ref around... Commented Dec 18, 2020 at 8:36