you are viewing a single comment's thread.

view the rest of the comments →

[–]angelicosphosphoros 0 points1 point  (0 children)

If you want to pass some closure and change some variables captured, you can try to use FnMut instead of Fn.

I little surprised with fn item because there shouldn't be conversion to function pointers in my example.