MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / numeric

Function numeric

atomic-cli/src/commands/intent/list.rs:142–147  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

140 }
141 }
142 fn numeric(s: &str) -> Option<&str> {
143 if s.is_empty() || !s.bytes().all(|b| b.is_ascii_digit()) {
144 return None;
145 }
146 Some(s.trim_start_matches('0'))
147 }
148
149 let (a_prefix, a_suffix) = parts(a);
150 let (b_prefix, b_suffix) = parts(b);

Callers

nothing calls this directly

Calls 3

is_emptyMethod · 0.45
allMethod · 0.45
bytesMethod · 0.45

Tested by

no test coverage detected