MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / bool_result

Function bool_result

packages/server/src/native/bridge.rs:1354–1360  ·  view source on GitHub ↗
(result: bool, error: *mut i8)

Source from the content-addressed store, hash-verified

1352}
1353
1354unsafe fn bool_result(result: bool, error: *mut i8) -> Result<(), AppError> {
1355 if result {
1356 Ok(())
1357 } else {
1358 Err(take_error(error).unwrap_or_else(|| AppError::native("Unknown native error.")))
1359 }
1360}
1361
1362unsafe fn take_error(raw: *mut i8) -> Option<AppError> {
1363 if raw.is_null() {

Callers 15

boot_simulatorMethod · 0.85
shutdown_simulatorMethod · 0.85
toggle_appearanceMethod · 0.85
open_urlMethod · 0.85
launch_bundleMethod · 0.85
send_touchMethod · 0.85
send_keyMethod · 0.85
press_homeMethod · 0.85
open_app_switcherMethod · 0.85
press_buttonMethod · 0.85
send_buttonMethod · 0.85
rotate_crownMethod · 0.85

Calls 1

take_errorFunction · 0.85

Tested by

no test coverage detected