pub fn payload_of(payload: &(dyn Any + Send)) -> StringExpand description
Extract a panic payload’s message.
Public because tests/panic_is_logged_test.rs asserts the String arm: panic!("{x}")
produces a String payload rather than a &str, and a hook that only downcasts to &str
reports every formatted panic — which is most of them — as unreadable.