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

Function parse_agent_ref

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

Source from the content-addressed store, hash-verified

3300}
3301
3302fn parse_agent_ref(value: &str) -> Option<usize> {
3303 let digits = value.trim().strip_prefix("@e")?;
3304 let index = digits.parse::<usize>().ok()?;
3305 (index > 0).then_some(index - 1)
3306}
3307
3308fn project_device_selection_for_selector(
3309 selector: &str,

Callers 1

parse_tap_command_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected