Expand description
Turso-owned allocation namespace.
Stable builds use std collections where allocator parameters are not
available. Builds compiled with --cfg nightly use Rust’s unstable
allocator_api collection parameters.
Structs§
- Alloc
Error - The
AllocErrorerror indicates an allocation failure that may be due to resource exhaustion or to something wrong when combining the given input arguments with this allocator. - Allocation
Site Guard - DynAllocator
- Global
- The global memory allocator.
- Layout
- Layout of a block of memory.
- TryReserve
Error - Turso
Allocator
Enums§
- Allocation
Site - MvStore
Allocation Site - Mvcc
Checkpoint Allocation Site - Schema
Allocation Site - SetAllocator
Error
Constants§
Traits§
- ApiAllocator
- The underlying allocator trait:
allocator_api2::alloc::Allocatoron stable,std::alloc::Allocatoron--cfg nightlybuilds. An implementation ofAllocatorcan allocate, grow, shrink, and deallocate arbitrary blocks of data described viaLayout. - Concurrent
Allocator - Allocator safe to clone into concurrent data structures and deferred drops.
- TryClone
- Turso
Alloc Backend - Backend for Turso heap allocations.
- Turso
Alloc Ext - Turso
Binary Heap Ext - Turso
BoxExt - Turso
From Iterator - Turso
Hash MapExt - Turso
Hash SetExt - Turso
Iterator Ext - Turso
NewExt - Turso
Slice Ext - Conversion from a slice into an allocator-aware
Vec. - Turso
TryNew Ext - Turso
TryWith Capacity Ext - Turso
VecDeque Ext - Turso
VecExt - Turso
VecIn Ext
Functions§
- current_
allocation_ site - enter_
allocation_ site - set_
allocator ⚠ - Sets Turso’s process-wide allocation backend once.
- try_
arc_ slice_ from_ slice - try_
arc_ slice_ from_ slice_ in