MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / run

Method run

src/platform/desktop.rs:13–23  ·  view source on GitHub ↗
(self, app: F)

Source from the content-addressed store, hash-verified

11 }
12
13 fn run<F>(self, app: F)
14 where
15 F: FnOnce() -> Box<dyn Application>
16 {
17 let mut app = app();
18 app.init();
19
20 let window = self.rust_ui.window();
21 println!("Running desktop app with window size: {:?}", window.dimensions());
22 // Implement event loop
23 }
24}

Callers

nothing calls this directly

Calls 2

initMethod · 0.45
windowMethod · 0.45

Tested by

no test coverage detected