Skip to main content

Module memory

Module memory 

Source
Expand description

Shared storage accounting for independently owned results.

The caller creates the trusted account before processing input. Containers retain that account independently of any parser and release their charge only when the backing allocation is deallocated. Input buffers supplied by the caller are outside these allocations; borrowed views do not copy them.

Structs§

Execution
A borrowed aggregate account and original parser-session work ceiling.
Memory
A shared storage domain retained by owned results.
MemoryAccount
Caller-owned accounting state, constructed without allocating memory.
MemoryReservation
A reservation retained alongside an adapter-owned allocation.
OwnedIter
An owning iterator that retains capacity accounting until storage is freed.
OwnedMap
A hash map whose backing allocation and operations share one resource domain.
OwnedString
Independently owned UTF-8 text with retained capacity accounting.
OwnedVec
An owned collection whose capacity remains charged until deallocation.

Enums§

MemoryError
A failed storage operation, distinct from malformed input.
SortError
A refused sort, preserving the comparator’s own error and provenance.

Traits§

HashWork
A trusted key type’s upper bound for hashing and equality work.
Work
An execution domain used by accounted collections and schema processing.