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

Method run

src/platform/ios.rs:20–31  ·  view source on GitHub ↗
(self, app: F)

Source from the content-addressed store, hash-verified

18 }
19
20 fn run<F>(self, app: F)
21 where
22 F: FnOnce() -> Box<dyn Application>
23 {
24 let mut app = app();
25 app.init();
26
27 unsafe {
28 let _: () = msg_send![class!(UIApplication),
29 sharedApplication];
30 }
31 }
32}

Callers 2

runFunction · 0.45
mainFunction · 0.45

Calls 1

initMethod · 0.45

Tested by

no test coverage detected