Skip to main content

panic_message

Function panic_message 

Source
fn panic_message(payload: &(dyn Any + Send)) -> String
Available on non-WebAssembly only.
Expand description

The text of a panic payload.

panic! with a literal produces a &str and with formatting a String; anything else is a caller’s own payload, which has no message to compare.