MCPcopy Create free account
hub / github.com/RustCrypto/utils / derive_zeroize

Function derive_zeroize

zeroize_derive/src/lib.rs:34–36  ·  view source on GitHub ↗
(input: proc_macro::TokenStream)

Source from the content-addressed store, hash-verified

32/// - `#[zeroize(skip)]`: skips this field or variant when calling `zeroize()`
33#[proc_macro_derive(Zeroize, attributes(zeroize))]
34pub fn derive_zeroize(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
35 derive_zeroize_impl(syn::parse_macro_input!(input as DeriveInput)).into()
36}
37
38fn derive_zeroize_impl(input: DeriveInput) -> TokenStream {
39 let attributes = ZeroizeAttrs::parse(&input);

Callers

nothing calls this directly

Calls 1

derive_zeroize_implFunction · 0.85

Tested by

no test coverage detected