MCPcopy Create free account
hub / github.com/chc4/lineiform / as_variant_mut

Method as_variant_mut

tangle/src/node.rs:205–209  ·  view source on GitHub ↗
(&'a mut self, token: &'a mut NodeOwner)

Source from the content-addressed store, hash-verified

203 }
204
205 pub fn as_variant_mut<'a, T>(&'a mut self, token: &'a mut NodeOwner) -> Option<&'a mut T> where T: 'static + Clone {
206 let x = self.as_variant::<T>(token);
207 //(&mut x?.clone() as &mut (dyn core::any::Any + 'static)).downcast_mut::<T>()
208 panic!()
209 }
210
211 fn set_time(&mut self, time: Timestamp) {
212 self.time = time;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected