Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ parse_segment_seq
Function
parse_segment_seq
nodedb/src/engine/array/store/catalog.rs:444–446 ·
view source on GitHub ↗
(id: &str)
Source
from the content-addressed store, hash-verified
442
}
443
444
fn parse_segment_seq(id: &str) -> Option<u64> {
445
id.split_once(
'.'
).and_then(|(stem, _)| stem.parse().ok())
446
}
447
448
#[cfg(test)]
449
mod tests {
Callers
1
open
Method · 0.85
Calls
2
ok
Method · 0.45
parse
Method · 0.45
Tested by
no test coverage detected