# Struct bitflags::__core::panic::PanicInfo [−] [src]

    pub struct PanicInfo<'a> {
        // some fields omitted
    }

Unstable (`panic_handler`)

: awaiting feedback

A struct providing information about a panic.

## Methods

### `impl<'a> PanicInfo<'a>`

#### `fn payload(&self) -> &Any + 'static + Send`

Unstable (`panic_handler`)

: awaiting feedback

Returns the payload associated with the panic.

This will commonly, but not always, be a `&'static str` or `String`.

#### `fn location(&self) -> Option<&Location>`

Unstable (`panic_handler`)

: awaiting feedback

Returns information about the location from which the panic originated, if available.

This method will currently always return `Some`, but this may change in future versions.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)