Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emwalker/digraph
/ link_count
Method
link_count
backend/src/git/stats.rs:36–38 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
34
35
impl Stats {
36
pub fn link_count(&self) -> usize {
37
self.stats.iter().map(|s| s.link_count.unwrap_or(0)).sum()
38
}
39
40
pub fn topic_count(&self) -> usize {
41
self.stats.iter().map(|s| s.topic_count.unwrap_or(0)).sum()
Callers
1
try_from
Method · 0.80
Calls
1
iter
Method · 0.45
Tested by
no test coverage detected