Crate hv_stampede[−][src]
Expand description
Heavy Stampede - a friendly herd of bumpalo
s, with extra features
This crate builds on and reexports most things from the bumpalo
crate. In implementation and
usage, it is very similar to the bumpalo-herd
crate, but supports some operations that Herd
does not:
BumpPool
supports temporarily detaching aBump
from the pool throughPooledBump::detach
, locking it to the thread it was detached in until it is dropped and returned to the pool.PooledBump::as_bump_unbound
, unsafe access to the managedBump
inside.
Modules
A pointer type for bump allocation.
Collection types.
Macros
Like the format!
macro for creating std::string::String
s but for
bumpalo::collections::String
.
Structs
An arena to bump allocate into.
A thread-safe pool of Bump
s (provided as PooledBump
s). Internally, this is two pools;
the “ready” pool of Bump
s which do not yet have any objects tied to their lifetimes, and the
“shunned” pool of Bump
s which were detached using PooledBump::detach
and must not be
allocated from or destroyed until the entire pool is .reset()
.
An iterator over each chunk of allocated memory that an arena has bump allocated into.
An iterator over raw pointers to chunks of allocated memory that this arena has bump allocated into.
Enums
An error returned from Bump::try_alloc_try_with
.