pub fn run(mut self) {
        window().request_animation_frame(move |_| {
            if self.window_shells.is_empty() {
                return;
            }

            for i in 0..self.window_shells.len() {
                let mut remove = false;
                if let Some(window_shell) = self.window_shells.get_mut(i) {
                    window_shell.render();
                    window_shell.update();
                    window_shell.update_clipboard();
                    window_shell.drain_events();
                    window_shell.receive_requests();
                    if !window_shell.is_open() {
                        remove = true;
                    }
                }

                if remove {
                    self.window_shells.remove(i);
                    break;
                }
            }

            self.receive_requests();
            self.run();
        });
    }
/// Runs (starts) the application shell and its windows.
Runs (starts) the application shell and its windows.
Runs ( starts ) the application shell and its windows .
pub fn run(mut self) {
        window().request_animation_frame(move |_| {
            if self.window_shells.is_empty() {
                return;
            }
            for i in 0..self.window_shells.len() {
                let mut remove = false;
                if let Some(window_shell) = self.window_shells.get_mut(i) {
                    window_shell.render();
                    window_shell.update();
                    window_shell.update_clipboard();
                    window_shell.drain_events();
                    window_shell.receive_requests();
                    if !window_shell.is_open() {
                        remove = true;
                    }
                }
                if remove {
                    self.window_shells.remove(i);
                    break;
                }
            }
            self.receive_requests();
            self.run();
        });
    }
pub fn run ( mut self ) { window ( ) . request_animation_frame ( move | _ | { if self . window_shells . is_empty ( ) { return ; } for i in 0 .. self . window_shells . len ( ) { let mut remove = false ; if let Some ( window_shell ) = self . window_shells . get_mut ( i ) { window_shell . render ( ) ; window_shell . update ( ) ; window_shell . update_clipboard ( ) ; window_shell . drain_events ( ) ; window_shell . receive_requests ( ) ; if ! window_shell . is_open ( ) { remove = true ; } } if remove { self . window_shells . remove ( i ) ; break ; } } self . receive_requests ( ) ; self . run ( ) ; } ) ; }
Runs (starts) the application shell and its windows.
Runs ( starts ) the application shell and its windows .
mut self