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

Method get_mut

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

Source from the content-addressed store, hash-verified

153
154impl<'a> GetMut<'a, &'a mut Map> for Data {
155 fn get_mut(&mut self) -> &mut Map {
156 match self.ty {
157 DataType::Collection(CollectionType::Map) => self.data.as_ref_mut().unwrap(),
158 _ => unreachable!("type is not match"),
159 }
160 }
161}
162
163impl<'a> GetMut<'a, &'a mut CowList> for Data {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected