Expand description
Panic support in the standard library.
Macros§
- const_
assert 👻Experimental - A version of
assert
that prints a non-formatting message in const contexts. - const_
panic 👻Experimental - Helper macro for panicking in a
const fn
. Invoke as: - panic_
2015 👻Experimental - panic_
2021 👻Experimental - unreachable_
2015 👻Experimental - unreachable_
2021 👻Experimental
Structs§
- Assert
Unwind Safe - A simple wrapper around a type to assert that it is unwind safe.
- Location
- A struct containing information about the location of a panic.
- Panic
Info - A struct providing information about a panic.
- Panic
Message - A message that was given to the
panic!()
macro.
Traits§
- RefUnwind
Safe - A marker trait representing types where a shared reference is considered unwind safe.
- Unwind
Safe - A marker trait which represents “panic safe” types in Rust.
- Panic
Payload 👻Experimental - An internal trait used by std to pass data from std to
panic_unwind
and other panic runtimes. Not intended to be stabilized any time soon, do not use.
Functions§
- abort_
unwind Experimental - Invokes a closure, aborting if the closure unwinds.