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