zeroize

Derive Macro ZeroizeOnDrop

Source
#[derive(ZeroizeOnDrop)]
{
    // Attributes available to this derive:
    #[zeroize]
}
Expand description

Derive the ZeroizeOnDrop trait.

Supports the following attributes:

On the field level:

  • #[zeroize(skip)]: skips this field or variant when calling zeroize()