Expand description

Panic support in the standard library.

Structs

A simple wrapper around a type to assert that it is unwind safe.
A struct containing information about the location of a panic.
A struct providing information about a panic.

Traits

A marker trait representing types where a shared reference is considered unwind safe.
A marker trait which represents “panic safe” types in Rust.

Functions

Make all future panics abort directly without running the panic hook or unwinding.
Invokes a closure, capturing the cause of an unwinding panic if one occurs.
Panic the current thread with the given message as the panic payload.
Triggers a panic without invoking the panic hook.
Registers a custom panic hook, replacing any that was previously registered.
Unregisters the current panic hook, returning it.
Atomic combination of take_hook and set_hook. Use this to replace the panic handler with a new panic handler that does something and then executes the old handler.