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

Function zeroize_vec

zeroize/tests/zeroize.rs:111–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109#[cfg(feature = "alloc")]
110#[test]
111fn zeroize_vec() {
112 let mut vec = vec![42; 3];
113 vec.zeroize();
114 assert!(vec.is_empty());
115}
116
117#[cfg(feature = "alloc")]
118#[test]

Callers

nothing calls this directly

Calls 1

zeroizeMethod · 0.45

Tested by

no test coverage detected