Expand description
The list contract: the pluggable ListValue backend protocol.
The kernel defines the list-value protocol, force bounds, and a backend
registry; concrete list representations are libs loaded against it. A
VecList is provided as a baseline backend, not as kernel-fixed behavior.
Structs§
- List
Registry - Registry of named list backends with one active default.
- VecList
- Baseline eager list backend backed by a shared slice of values.
Enums§
- Length
Result - Result of asking a list for its length.
Constants§
- DEFAULT_
FORCE_ BOUND - Default maximum number of elements an encoder or expr conversion will force from a lazy or endless list before erroring.
Traits§
- List
Backend - Factory protocol for constructing lists in a particular representation.
- List
Value - Shared behaviour for every list backend.
Functions§
- force_
list_ bound - The force bound for the current context, or
Noneif unbounded forcing is permitted by capability. - force_
list_ to_ vec - Materializes a list to a vector, erroring if it exceeds the force bound.
- spine_
len_ cmp - Compares the spine length of
headagainstnwithout full forcing.