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

Function zeroize_on_struct

zeroize_derive/src/lib.rs:596–605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

594
595 #[test]
596 fn zeroize_on_struct() {
597 parse_zeroize_test(stringify!(
598 #[zeroize(drop)]
599 struct Z {
600 a: String,
601 b: Vec<u8>,
602 c: [u8; 3],
603 }
604 ));
605 }
606
607 #[test]
608 fn zeroize_on_enum() {

Callers

nothing calls this directly

Calls 1

parse_zeroize_testFunction · 0.85

Tested by

no test coverage detected