MCPcopy Create free account
hub / github.com/ezrosent/allocators-rs / init

Method init

object-alloc-test/src/corruption.rs:284–306  ·  view source on GitHub ↗

Initialize a new tester. `ptr` points to an uninitialized `CorruptionTester `. If `init` is `UnsafeDefault`, then `ptr` is taken to be the final location of the tester in memory, and the pointer is used in computing the hash. Otherwise, `ptr` is simply taken to be a temporary location, and the pointer is not used in computing the hash.

(ptr: *mut CorruptionTester<T>, init: Initializer)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected