pub(crate) struct ZeroizeAttrs {
    pub(crate) drop: bool,
    pub(crate) bound: Option<Bounds>,
}
Expand description

Custom derive attributes for Zeroize

Fields

drop: bool

Derive a Drop impl which calls zeroize on this type

bound: Option<Bounds>

Custom bounds as defined by the user

Implementations

Parse attributes from the incoming AST

Parse attribute and handle #[zeroize(...)] attributes

Parse #[zeroize(...)] attribute metadata (e.g. drop)

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.