Function std::panicking::begin_panic_fmt[][src]

pub fn begin_panic_fmt(msg: &Arguments<'_>) -> !
🔬 This is a nightly-only experimental API. (libstd_sys_internals)

used by the panic! macro

Expand description

The entry point for panicking with a formatted message.

This is designed to reduce the amount of code required at the call site as much as possible (so that panic!() has as low an impact on (e.g.) the inlining of other functions as possible), by moving the actual formatting into this shared place.