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

Class ProxyAllocator

zeroize/tests/alloc.rs:15–15  ·  view source on GitHub ↗

Allocator that ensures that allocation registered in `REG_PTR` is zeroized.

Source from the content-addressed store, hash-verified

13
14// Allocator that ensures that allocation registered in `REG_PTR` is zeroized.
15struct ProxyAllocator;
16
17#[allow(clippy::undocumented_unsafe_blocks)]
18unsafe impl GlobalAlloc for ProxyAllocator {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected