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.
OwnedText
Single-owner validated UTF-8 retaining its original capacity charge.
OwnedVec
An owned collection whose capacity remains charged until deallocation.
SharedString
Shared immutable UTF-8, with non-atomic, allocation-free handle cloning.
TextError
Failed text construction retaining the unchanged original buffer.

Enums§

MemoryError
A failed storage operation, distinct from malformed input.
RetainError
A refused in-place filter, preserving the predicate’s own cause.
SortError
A refused sort, preserving the comparator’s own error and provenance.
TextErrorKind
Why an existing byte buffer could not become immutable UTF-8 text.

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.