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

Function zeroize_string

zeroize/tests/zeroize.rs:154–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152#[cfg(feature = "alloc")]
153#[test]
154fn zeroize_string() {
155 let mut string = String::from("Hello, world!");
156 string.zeroize();
157 assert!(string.is_empty());
158}
159
160#[cfg(feature = "alloc")]
161#[test]

Callers

nothing calls this directly

Calls 1

zeroizeMethod · 0.45

Tested by

no test coverage detected