Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ zeroize_string
Function
zeroize_string
zeroize/tests/zeroize.rs:166–170 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
164
#[cfg(feature =
"alloc"
)]
165
#[test]
166
fn zeroize_string() {
167
let mut string = String::from(
"Hello, world!"
);
168
string.zeroize();
169
assert!(string.is_empty());
170
}
171
172
#[cfg(feature =
"alloc"
)]
173
#[test]
Callers
nothing calls this directly
Calls
1
zeroize
Method · 0.45
Tested by
no test coverage detected