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

Function volatile_write

zeroize/src/lib.rs:799–801  ·  view source on GitHub ↗
(dst: &mut T, src: T)

Source from the content-addressed store, hash-verified

797/// Perform a volatile write to the destination
798#[inline(always)]
799fn volatile_write<T: Copy + Sized>(dst: &mut T, src: T) {
800 unsafe { ptr::write_volatile(dst, src) }
801}
802
803/// Internal module used as support for `AssertZeroizeOnDrop`.
804#[doc(hidden)]

Callers 2

zeroizeMethod · 0.85
volatile_fill_iterativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected