MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / opt_str

Function opt_str

codegraph-kernel/src/rustlang.rs:1834–1839  ·  view source on GitHub ↗
(arena: &mut Arena, s: Option<&str>)

Source from the content-addressed store, hash-verified

1832}
1833
1834fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
1835 match s {
1836 Some(s) => arena.put(s),
1837 None => NONE_STR,
1838 }
1839}
1840
1841// --- expression macros (#3251, #3484) ----------------------------------------
1842//

Callers 1

create_nodeMethod · 0.70

Calls 1

putMethod · 0.65

Tested by

no test coverage detected