Function panicking

pub fn panicking() -> bool

Determines whether the current thread is unwinding because of panic.