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

Interface Platform

src/platform/mod.rs:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9mod desktop;
10
11pub trait Platform {
12 fn init(rust_native: RustUI) -> Self;
13 fn run<F>(self, app: F) where F: FnOnce() -> Box<dyn Application>;
14}
15
16#[cfg(target_os = "ios")]
17pub use ios::IosPlatform as CurrentPlatform;

Callers

nothing calls this directly

Implementers 2

desktop.rssrc/platform/desktop.rs
ios.rssrc/platform/ios.rs

Calls

no outgoing calls

Tested by

no test coverage detected