Skip to main content

panic_hook

Function panic_hook 

Source
pub fn panic_hook(
    console: Console,
) -> impl Fn(&PanicHookInfo<'_>) + Send + Sync + 'static
Expand description

A panic hook printing the panic as a StackTrace to console. Install it with std::panic::set_hook(Box::new(panic_hook(console))); this module never installs anything itself.