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

Function unsafe_default

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

Initialize a `CorruptionTesterUnsafe`. `unsafe_default` is like `Default`'s `default` method, but it takes a pointer to a block of uninitialized memory and initializes it to an instance of `CorruptionTesterUnsafe`.

(ptr: *mut CorruptionTesterUnsafe<T>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 2

initFunction · 0.85
stateMethod · 0.45

Tested by

no test coverage detected