MCPcopy Index your code
hub / github.com/dropbox/rust-alloc-no-stdlib / alloc_cell

Method alloc_cell

alloc-stdlib/src/std_alloc.rs:8–10  ·  view source on GitHub ↗
(&mut self, len : usize)

Source from the content-addressed store, hash-verified

6impl<T: Clone+Default> Allocator<T> for StandardAlloc {
7 type AllocatedMemory = WrapBox<T>;
8 fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9 vec![T::default().clone();len].into()
10 }
11 fn free_cell(&mut self, _data : WrapBox<T>) {
12
13 }

Callers

nothing calls this directly

Calls 1

intoMethod · 0.80

Tested by

no test coverage detected