MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / parse_bool_value

Function parse_bool_value

packages/server/src/main/batch.rs:675–681  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

673}
674
675fn parse_bool_value(value: &str) -> Option<bool> {
676 match value.to_ascii_lowercase().as_str() {
677 "true" | "1" | "yes" | "on" => Some(true),
678 "false" | "0" | "no" | "off" => Some(false),
679 _ => None,
680 }
681}
682
683fn wait_for_batch_selector(
684 bridge: &NativeBridge,

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected