These are chat archives for rust-lang/rust

17th
May 2016
fstuess
@fstuess
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).
Zakarum
@omni-viral
May 17 2016 13:23
@fstuess You need Clone trait bound
Zakarum
@omni-viral
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
@ahiliation
May 17 2016 15:27
hello all