This two step approach is the only way I found to use rust closures for wndproc without double allocation and additional indirection.
This two step approach is the only way I found to use rust closures for wndproc without double allocation and additional indirection.