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

Method drop

zeroize/tests/alloc.rs:52–54  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

50
51impl<S: Zeroize> Drop for SecretBox<S> {
52 fn drop(&mut self) {
53 self.0.as_mut().zeroize();
54 }
55}
56
57struct ObserveSecretBox<S: Default>(Box<S>);

Callers

nothing calls this directly

Calls 4

defaultFunction · 0.85
optimization_barrierFunction · 0.85
zeroizeMethod · 0.45
as_mutMethod · 0.45

Tested by

no test coverage detected