Module panic
Panic support in core.
Modules
Structs
- AssertUnwindSafe A simple wrapper around a type to assert that it is unwind safe.
- Location A struct containing information about the location of a panic.
- PanicInfo A struct providing information about a panic.
-
PanicMessage
A message that was given to the
panic!()macro.
Traits
- RefUnwindSafe A marker trait representing types where a shared reference is considered unwind safe.
- UnwindSafe A marker trait which represents "panic safe" types in Rust.
Functions
- abort_on_unwind Invokes a closure, aborting if the closure unwinds.
Macros
-
const_assert
A version of
assertthat prints a non-formatting message in const contexts. -
const_panic
Helper macro for panicking in a
const fn. Invoke as: - panic_2015
- panic_2021
- unreachable_2015
- unreachable_2021