Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algoscienceacademy/RustUI
/ init
Method
init
src/platform/ios.rs:12–18 ·
view source on GitHub ↗
(rust_ui: RustUI)
Source
from the content-addressed store, hash-verified
10
11
impl Platform for IosPlatform {
12
fn init(rust_ui: RustUI) -> Self {
13
let device = Device::system_default().expect(
"No Metal device found"
);
14
Self {
15
device,
16
rust_ui,
17
}
18
}
19
20
fn run<F>(self, app: F)
21
where
Callers
1
run
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected