Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
111
fn 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
zeroize
Method · 0.45
Tested by
no test coverage detected