pub fn run_draw<F>(self, mut op: F) -> !
    where
        F: 'static + FnMut(Frame<'_>),
    {
        self.run(move |event, _, _, _| {
            if let Event::RedrawFrame(frame) = event {
                op(frame);
            }
        })
    }
/// Calls the closure each time a new frame is available to draw.
/// This can be used to draw to the screen when you don't need to handle other events.
Calls the closure each time a new frame is available to draw.
This can be used to draw to the screen when you don't need to handle other events.
Calls the closure each time a new frame is available to draw . This can be used to draw to the screen when you don ' t need to handle other events .
pub fn run_draw<F>(self, mut op: F) -> !
    where
        F: 'static + FnMut(Frame<'_>),
    {
        self.run(move |event, _, _, _| {
            if let Event::RedrawFrame(frame) = event {
                op(frame);
            }
        })
    }
pub fn run_draw < F > ( self , mut op : F ) -> ! where F : ' static + FnMut ( Frame < ' _ > ) , { self . run ( move | event , _ , _ , _ | { if let Event :: RedrawFrame ( frame ) = event { op ( frame ) ; } } ) }
Calls the closure each time a new frame is available to draw.
Calls the closure each time a new frame is available to draw .
self
op
F
self
op
F