Open BenjaminSchaaf opened 5 months ago
Try Scope::create_nonstatic_userdata
. It's slower alternative that does not require T: 'static
.
That does work, but creating a new metaclass for almost every single function call is not a tenable situation.
Some trivially valid examples are currently impossible due to lifetime annotations:
scope.create_any_userdata_ref_mut
should not requireT: 'static
. The only workaround I've found is to transmute the parameter.