core::panic - Rust (original) (raw)

Module panic

1.41.0 · Source

Expand description

Panic support in the standard library.

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.

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.

abort_unwindExperimental

Invokes a closure, aborting if the closure unwinds.