Skip to main content

alloc_items

Function alloc_items 

Source
pub fn alloc_items(site: Site, items: usize, item_size: usize)
Available on crate feature profiling only.
Expand description

Record one allocation whose size is the capacity of a slice-shaped value.

A convenience over alloc for the common Vec-and-element-size case, so a call site reads as the fact it is recording rather than as arithmetic.