MCPcopy 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
61impl<'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_basisFunction · 0.45

Calls 2

as_refMethod · 0.80
getMethod · 0.45

Tested by 1

test_basisFunction · 0.36