Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PolyhedraZK/ExpanderCompilerCollection
/ try_get_idx
Method
try_get_idx
expander_compiler/src/utils/pool.rs:34–36 ·
view source on GitHub ↗
(&self, val: &V)
Source
from the content-addressed store, hash-verified
32
}
33
34
pub fn try_get_idx(&self, val: &V) -> Option<usize> {
35
self.map.get(val).cloned()
36
}
37
38
pub fn get(&self, idx: usize) -> &V {
39
self.vec.get(idx).expect(
"Pool index out of bounds"
)
Callers
2
try_get_really_single_id
Function · 0.80
try_make_single
Method · 0.80
Calls
1
get
Method · 0.45
Tested by
no test coverage detected