Skip to main content

Module panic

Module panic 

1.41.0 · Source
Expand description

Panic support in core.

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

Functions§

abort_on_unwindExperimental
Invokes a closure, aborting if the closure unwinds.