Skip to main content

panic_message

Function panic_message 

Source
pub fn panic_message(payload: &(dyn Any + Send)) -> String
Expand description

Render a catch_unwind payload as a message.

panic!("{x}") yields a String payload and panic!("literal") a &'static str; anything else (panic_any) has no text to show and renders as "unknown panic".