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

Method zeroize

zeroize/src/lib.rs:274–277  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

272 Z: DefaultIsZeroes,
273{
274 fn zeroize(&mut self) {
275 volatile_write(self, Z::default());
276 optimization_barrier(self);
277 }
278}
279
280macro_rules! impl_zeroize_with_default {

Callers 3

clone_fromMethod · 0.45
dropMethod · 0.45
zeroize_or_on_dropMethod · 0.45

Calls 7

volatile_writeFunction · 0.85
defaultFunction · 0.85
optimization_barrierFunction · 0.85
volatile_setFunction · 0.85
expectMethod · 0.80
lenMethod · 0.80
as_mutMethod · 0.45

Tested by

no test coverage detected