> ## Documentation Index
> Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
> Use this file to discover all available pages before exploring further.

# core::traits::PanicDestruct

A trait that allows for destruction of a value in case of a panic.
This trait is automatically implemented from the `Destruct` implementation for a type.

## Signature

```rust theme={null}
pub trait PanicDestruct
```

## Trait functions

### panic\_destruct

#### Signature

```rust theme={null}
fn panic_destruct(self: T, ref panic: Panic)
```
