Expand description
Short lived memory.
For work whose size is not known until it runs, and which is finished with the memory by the time it returns. Allocating for each such call can cost more than the work itself.
Functionsยง
- take_
slice - Takes a
lenelement slice ofToff the front ofbytes, aligning first, and returns it along with what is left. - with_
scratch - Calls
fwith a zeroed block ofsizebytes. - with_
scratch_ ๐dyn - Calls
fwith a zeroed block ofsizebytes, through a trait object so that the buckets below are compiled once rather than once per caller.