Skip to main content

panic_str

Function panic_str 

Source
pub fn panic_str(p: &Box<dyn Any + Send + 'static>) -> &'static str
Expand description

Extracts a static string slice from a boxed panic payload.

Payloads of other types, including owned String values, produce the empty string. The returned slice does not borrow storage from the box.