[][src]Module heaparray::thin_array_ptr

Contains definition of ThinPtrArray, an array whose pointer is 1 word.

This more similar to how arrays are defined in C or C++, and is less idiomatic in Rust, but may improve performance depending on your use case. Thus, it is not the standard implementation of HeapArray, but is still available for use via `use heaparray::thin_array_ptr::*;

Structs

ThinPtrArray

Heap-allocated array, with array size stored alongside the memory block itself.

Traits

Array

Statically-sized array stored in the heap.

ArrayRef

A reference to an array, whose clone points to the same data.

AtomicArrayRef

Atomically modified array reference. Guarrantees that all operations on the array reference are atomic (i.e. all changes to the internal array pointer).

BaseArrayRef

A basic reference to a heap-allocated array. Should be paired with exactly one of either heaparray::UnsafeArrayRef or heaparray::ArrayRef.

Container

Trait for a simple container.

CopyMap

Trait for a container indexed by a value that implements Copy and Eq.

DefaultLabelledArray

Trait for a labelled array with a default value.

LabelledArray

Array with an optional label struct stored next to the data.

MakeArray

An array of arbitrary (sized) values that can be safely initialized.

UnsafeArrayRef

A reference to a heap-allocated array whose safe API guarrantees it to always be non-null.