source: learn-wgpu/lib.rs at master · sotrh/learn-wgpu · GitHub
I want to refactor this line:
event_loop.run(move |event, _, control_flow| match event {
into
let t = move | ... | { ... }
event_loop(t);
===
So the problem here is I now need to specify the types for event, _, control_flow
. What we get here is:
event: Event<_, T>
_: EventLoopWindowTarget<T>,
control_flow: &mut ControlFlow
The problem: I can't figure out what the generic parameter T is.
Thanks!