Skip to main content

Crate zallocator

Crate zallocator 

Source
Expand description

Amortizes the cost of small allocations by allocating memory in bigger chunks.

Modules§

pool
Lock-free allocator pool

Structs§

Buffer
A buffer that is allocated by the zallocator.
Overflow
Overflow represents an error that exceeds the max size (1 << 30) of the chunk allowed to an allocator.
Zallocator
Amortizes the cost of small allocations by allocating memory in bigger chunks.
ZallocatorStats
The stats of allocators

Functions§

allocate_from
Allocate a new allocator by specific reference
release_all
Release all allocators
release_from
Release an allocator by reference
stats
Returns the stats of the allocators

Type Aliases§

Result
type alias for core::result::Result<T, Overflow>
type Item = T;
","Iter<'_, T>":"

Notable traits for Iter<'a, T>

impl<'a, T> Iterator for Iter<'a, T>
type Item = &'a T;
","IterMut<'_, T>":"

Notable traits for IterMut<'a, T>

impl<'a, T> Iterator for IterMut<'a, T>
type Item = &'a mut T;
"}