Module hadean_std::pinnedvec [] [src]

A vector that is "pinned" in memory, i.e. it is never reallocated. Thus it must be given a capacity on instantiation that will not change for its duration. push and other functions that increase the length fail if capacity is reached, and thus return a Result.

Structs

PinnedVec

A vector that is "pinned" in memory, i.e. it is never reallocated. Thus it must be given a capacity on instantiation that will not change for its duration. push and other functions that increase the length fail if capacity is reached, and thus return a Result.

PinnedVecError

Returned when an attempted insertion into a PinnedVec would exceed capacity.