pub fn handle_downcast_failed<T: TypedExternal>(ptr: &ExternalPtr<()>) -> !Expand description
Panic with the right message when a handle’s stored value is not a T:
“consumed” if a previous self-by-value step failed; the classed
RESTORED_NO_VALUE_CLASS / RESTORED_OTHER_VERSION_CLASS error for a
pointer built for T that came back from a saved session without its
value; type mismatch otherwise. Used by generated method preludes instead
of a bare expect.