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

Function opt_str

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

Source from the content-addressed store, hash-verified

971}
972
973fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
974 match s {
975 Some(s) => arena.put(s),
976 None => NONE_STR,
977 }
978}

Callers 1

create_nodeMethod · 0.70

Calls 1

putMethod · 0.80

Tested by

no test coverage detected