MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / parse_u64_field

Function parse_u64_field

xtask/src/extension_catalog.rs:1560–1563  ·  view source on GitHub ↗
(line: &str, field: &str)

Source from the content-addressed store, hash-verified

1558}
1559
1560fn parse_u64_field(line: &str, field: &str) -> Option<u64> {
1561 let rest = line.strip_prefix(&format!("{field}: "))?;
1562 rest.trim_end_matches(',').trim().parse().ok()
1563}
1564
1565fn parse_tags_field(line: &str) -> Option<Vec<String>> {
1566 let rest = line.strip_prefix("tags: ")?;

Callers 1

parse_docs_catalogFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected