Skip to main content

K_VOCABULARY_MAX_KEYS

Constant K_VOCABULARY_MAX_KEYS 

Source
pub const K_VOCABULARY_MAX_KEYS: usize = 512;
Expand description

Hard ceiling on distinct key names collected for a suggestion.

The envelope is caller-influenced, so the collector is a public parser: the memory rules forbid sizing an allocation from untrusted input without a ceiling. Reaching it costs a shorter suggestion list, never a refusal.