Module galloc

Source
Expand description

Global allocation

ConstantsΒ§

THR_ARENA πŸ”’

TraitsΒ§

AllocForAny
AllocForCharIter
AllocForExactSizeIter
AllocForIter
AllocForStr
TryAllocForExactSizeIter

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.