MCPcopy Create free account
hub / github.com/diem/move / remove

Method remove

language/move-prover/bytecode/src/annotations.rs:89–94  ·  view source on GitHub ↗

Removes annotation of type T.

(&mut self)

Source from the content-addressed store, hash-verified

87
88 /// Removes annotation of type T.
89 pub fn remove<T: Any>(&mut self) -> Option<Box<T>> {
90 let id = TypeId::of::<T>();
91 self.map
92 .remove(&id)
93 .and_then(|d| d.value.downcast::<T>().ok())
94 }
95}

Callers 15

get_vector_elementMethod · 0.45
unpack_struct_fieldMethod · 0.45
del_resourceMethod · 0.45
load_destroyed_argMethod · 0.45
handle_operationMethod · 0.45
handle_vector_getMethod · 0.45

Calls 1

okMethod · 0.80

Tested by

no test coverage detected