Module combined_alloc

Source

Macrosยง

implement_allocator ๐Ÿ”’

Structsยง

CombiningAllocator

Traitsยง

Allocator
BrotliAlloc

Functionsยง

alloc_default ๐Ÿ”’
Helper function to create an empty allocator object
alloc_if ๐Ÿ”’
Helper function to allocate memory or return a default value if the condition is false
alloc_or_default ๐Ÿ”’
Helper function to allocate memory or return a default value when the size is 0.
allocate ๐Ÿ”’
Helper function to allocate memory with the given allocator (may crash if the len is 0).