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

Class Z

zeroize/tests/zeroize_derive.rs:12–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10fn derive_tuple_struct_test() {
11 #[derive(Zeroize, ZeroizeOnDrop)]
12 struct Z([u8; 3]);
13
14 let mut value = Z([1, 2, 3]);
15 value.zeroize();

Callers 6

derive_tuple_struct_testFunction · 0.70
derive_boundFunction · 0.70
derive_inherit_from_bothFunction · 0.70
derive_inherit_bothFunction · 0.70
derive_derefFunction · 0.70

Calls

no outgoing calls

Tested by 6

derive_tuple_struct_testFunction · 0.56
derive_boundFunction · 0.56
derive_inherit_from_bothFunction · 0.56
derive_inherit_bothFunction · 0.56
derive_derefFunction · 0.56