pub fn erase_val<T: Erasable + DynSend + DynSync>(value: T) -> Erased<T>Expand description
Erases a value of type T into Erased<T>.
Erased<T> and Erased<U> are type-checked as distinct types, but codegen
can see whether they actually have the same storage type.