Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegFlow
/ xget_ref
Method
xget_ref
flow-message/src/cross/map.rs:62–64 ·
view source on GitHub ↗
(&'a self, key: &str)
Source
from the content-addressed store, hash-verified
60
61
impl<
'a> IndexGetRef<'
a, str, MapRef<'a>> for Map {
62
fn xget_ref(&
'a self, key: &str) -> Option<MapRef<'
a>> {
63
self.as_ref().get(key).map(MapRef::new)
64
}
65
}
66
67
#[cfg(test)]
Callers
1
test_basis
Function · 0.45
Calls
2
as_ref
Method · 0.80
get
Method · 0.45
Tested by
1
test_basis
Function · 0.36