Skip to main content

VALUE_SLOTS

Constant VALUE_SLOTS 

Source
pub const VALUE_SLOTS: usize = _; // 32usize
Expand description

How many key paths this crate can synthesise from scratch.

Shared between every kind: a focused-value key, an environment key, a container-value key and each named property of an observable model all need a thunk pair and a pattern slot, and nothing about any of them makes its pool private. next_value_slot hands them out in order so no caller picks an index.

The count is a declaration count, not a runtime one: each slot is a pair of thunks with its index assembled into the instruction stream, so raising it means adding lines to the invocation below. Observable properties are what made sixteen tight — a model with four properties takes four — so there are thirty-two.