Function core::panicking::panic_fmt

source ·
pub const fn panic_fmt(fmt: Arguments<'_>) -> !
🔬This is a nightly-only experimental API. (panic_internals)
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.