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

Function zeroize_vec

zeroize/tests/zeroize.rs:123–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121#[cfg(feature = "alloc")]
122#[test]
123fn zeroize_vec() {
124 let mut vec = vec![42; 3];
125 vec.zeroize();
126 assert!(vec.is_empty());
127}
128
129#[cfg(feature = "alloc")]
130#[test]

Callers

nothing calls this directly

Calls 1

zeroizeMethod · 0.45

Tested by

no test coverage detected