Module panic

Module panic 

Source
Expand description

Panic hooks, unwinding, abort strategies.

Extends: std::{panic}


Macros§

panic_
core Panics the current thread.
set_panic_handler
Sets a panic handler based on the chosen strategy.
todo
core Indicates unfinished code.
unimplemented
core Indicates unimplemented code.
unreachable
core Indicates unreachable code.

Structs§

Panic
🌐 Panic-related operations.
PanicAssertUnwindSafe
core A simple wrapper around a type to assert that it is unwind safe.
PanicHookInfostd
std Passed to std::panic::set_hook in std, where panics can have arbitrary payloads.
PanicInfo
core Passed to #[panic_handler] in no_std, always carrying a formatted message.
PanicLocation
core A struct containing information about the location of a panic.

Traits§

PanicRefUnwindSafe
core A marker trait which represents a shared reference considered unwind safe.
PanicUnwindSafe
core A marker trait which represents “panic safe” types in Rust.