Skip to main content

Crate ic_storage

Crate ic_storage 

Source
Expand description

Scoped scalar-vector operations for an already valid live allocation.

Native collection APIs neither open retained bytes nor establish allocator custody. The vector caller owns admission, initialization, publication and failure policy. The optional retained runtime separately owns bounded ordered allocation custody and startup under its explicit Rust 1.100.0 contract. The optional map feature adds an allocator-owned scalar hash table with scoped access, host poisoning and portable recovery. No private Vec header is admitted for persistence. The installed provider uses the vector API. The optional checkpoint feature supplies byte-defined bounded records and pages over caller-owned backing memory, independently of native admission.

Modules§

record
Description types for the experimental scalar-only Store derive. These describe concrete public layouts and logical fields, not allocator or pointer validity. No marker trait grants permission to reopen retained bytes.

Structs§

Vector
An exclusive scalar view, with no Deref, Clone or owning iterator.

Enums§

Refusal
Expected refusal before this operation changes the logical vector.

Functions§

with_vector
Lend a restricted view while keeping the owning Vec with the caller.