Expand description
Panic support in the standard library.
Re-exports§
pub use self::location::Location;
pub use self::panic_info::PanicInfo;
pub use self::panic_info::PanicMessage;
pub use self::unwind_safe::AssertUnwindSafe;
pub use self::unwind_safe::RefUnwindSafe;
pub use self::unwind_safe::UnwindSafe;
Modules§
- location 🔒
- panic_
info 🔒 - unwind_
safe 🔒
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
Traits§
- 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.