These are chat archives for rust-lang/rust

May 2016
May 17 2016 13:12
How to clone a Fn/FnMut inside a struct? Tried this but doesn't work. Googled a lot, but did not find anything appropriate (that i can understand).
May 17 2016 13:23
@fstuess You need Clone trait bound
May 17 2016 13:36
Forget I said that
You can't clone trait-objects
And you can't share FnMut either
You can change it to Fn and share via Rc. Or stop using trait-objects
Jeffrin Jose T
May 17 2016 15:27
hello all