[][src]Type Definition kul_core::premade::inmem::DatumAllocator

type DatumAllocator<'input, 'alloc, Extra = ()> = SliceDatumAllocator<'alloc, Text<'input, 'alloc, Extra>, Extra>;

Chosen so that the Datums in the AST values returned from parsing are allocated from a contiguous slice of them, which itself must be pre-allocated by you, e.g. as an array on the stack.

This DatumAllocator type is a SliceDatumAllocator of our Text type and of the given Extra type.

The Extra type parameter determines the type used in the Datum::Extra variant of our Datum type, and it defaults to ().