MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / xget

Method xget

flow-message/src/cross/map.rs:54–58  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

52 data::Data: data::Get<T>,
53{
54 fn xget(&self, key: &str) -> Option<T> {
55 self.as_ref()
56 .get(key)
57 .map(|data| data::Get::get(data.value()))
58 }
59}
60
61impl<'a> IndexGetRef<'a, str, MapRef<'a>> for Map {

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected