zeroize

Derive Macro ZeroizeOnDrop

Source
#[derive(ZeroizeOnDrop)]
{
    // Attributes available to this derive:
    #[zeroize]
}
Available on crate feature zeroize_derive only.
Expand description

Derive the ZeroizeOnDrop trait.

Supports the following attributes:

On the field level:

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