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

Function run

src/platform/mod.rs:25–31  ·  view source on GitHub ↗
(rust_native: RustUI, app: F)

Source from the content-addressed store, hash-verified

23pub use desktop::DesktopPlatform as CurrentPlatform;
24
25pub fn run<F>(rust_native: RustUI, app: F)
26where
27 F: FnOnce() -> Box<dyn Application>
28{
29 let platform = CurrentPlatform::init(rust_native);
30 platform.run(app);
31}

Callers 1

runMethod · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected