[][src]Module heaparray::mem_block

Contains the struct MemBlock, which handles pointer math and very low-level interactions with memory.

Structs

MemBlock

An array block that can hold arbitrary information, and cannot be constructed on the stack. The E type can be repeated an arbitrary number of times, and the L type can be repeated exactly once.

MemBlockIter

A struct that allows for iteration over a MemBlock. Uses safe functions because its construction is unsafe, so once you've constructed it you purportedly know what you're doing.

Functions

block_max_len

Get the maximum length of a memory block, based on the types that it contains. Maintains the invariants discussed above.