pub fn run(mut self) -> ! {
		let event_loop = self.event_loop.take().unwrap();
		event_loop.run(move |event, event_loop, control_flow| {
			let initial_window_count = self.windows.len();
			self.handle_event(event, event_loop, control_flow);

			// Check if the event handlers caused the last window(s) to close.
			// If so, generate an AllWIndowsClosed event for the event handlers.
			if self.windows.is_empty() && initial_window_count > 0 {
				self.run_event_handlers(&mut Event::AllWindowsClosed, event_loop);
				if self.exit_with_last_window {
					self.exit(0);
				}
			}
		});
	}
/// Run the event loop of the context.
///
/// This function must be run from the main thread and never returns.
///
/// Not all platforms have this restriction,
/// but for portability reasons it is enforced on all platforms.
Run the event loop of the context.
This function must be run from the main thread and never returns.

Not all platforms have this restriction,
but for portability reasons it is enforced on all platforms.
Run the event loop of the context . This function must be run from the main thread and never returns . Not all platforms have this restriction but for portability reasons it is enforced on all platforms .
pub fn run(mut self) -> ! {
		let event_loop = self.event_loop.take().unwrap();
		event_loop.run(move |event, event_loop, control_flow| {
			let initial_window_count = self.windows.len();
			self.handle_event(event, event_loop, control_flow);
			// Check if the event handlers caused the last window(s) to close.
			// If so, generate an AllWIndowsClosed event for the event handlers.
			if self.windows.is_empty() && initial_window_count > 0 {
				self.run_event_handlers(&mut Event::AllWindowsClosed, event_loop);
				if self.exit_with_last_window {
					self.exit(0);
				}
			}
		});
	}
pub fn run ( mut self ) -> ! { let event_loop = self . event_loop . take ( ) . unwrap ( ) ; event_loop . run ( move | event , event_loop , control_flow | { let initial_window_count = self . windows . len ( ) ; self . handle_event ( event , event_loop , control_flow ) ; // Check if the event handlers caused the last window(s) to close. // If so, generate an AllWIndowsClosed event for the event handlers. if self . windows . is_empty ( ) && initial_window_count > 0 { self . run_event_handlers ( & mut Event :: AllWindowsClosed , event_loop ) ; if self . exit_with_last_window { self . exit ( 0 ) ; } } } ) ; }
Run the event loop of the context.
Run the event loop of the context .
mut self