Expand description
Global allocation
ConstantsΒ§
- THR_
ARENA π
TraitsΒ§
FunctionsΒ§
- alloc π
- Allocates a given value in a thread-local arena.
- alloc_
iter π - Allocates a slice from an iterator and returns a reference with a static lifetime.
- alloc_
iter2 π - Allocates an iteratorβs items into a bump-allocated slice.
- alloc_
mut π - Allocates a mutable reference to a value on a thread-local storage arena.
- alloc_
str π - Allocates a string in a thread-local arena and returns a reference with a
'static
lifetime. - as_
owned π - Creates an owned
BString
from a borrowed string slice using a thread-local memory arena. - collect_
str_ πin_ arena0 - Converts an iterator of characters into a static string stored in a memory arena.
- new_
bvec - Creates a new
BVec
with a specified capacity. - try_
alloc_ πiter - Attempts to allocate items from an iterator within a thread-local memory arena.