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

Method get_ref

flow-message/src/cross/data/mod.rs:128–133  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

126
127impl<'a> GetRef<'a, &'a Map> for Data {
128 fn get_ref(&self) -> &Map {
129 match self.ty {
130 DataType::Collection(CollectionType::Map) => self.data.as_ref().unwrap(),
131 _ => unreachable!("type is not match"),
132 }
133 }
134}
135
136impl<'a> GetRef<'a, &'a CowList> for Data {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected