Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colbymchenry/codegraph
/ opt_str
Function
opt_str
codegraph-kernel/src/swift.rs:1598–1603 ·
view source on GitHub ↗
(arena: &mut Arena, s: Option<&str>)
Source
from the content-addressed store, hash-verified
1596
}
1597
1598
fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
1599
match s {
1600
Some(s) => arena.put(s),
1601
None => NONE_STR,
1602
}
1603
}
Callers
1
create_node
Method · 0.70
Calls
1
put
Method · 0.80
Tested by
no test coverage detected