#[derive(Reflect)]
{
// Attributes available to this derive:
#[bits]
#[entropy]
}
Expand description
Derives allocation-free structural reflection metadata.
Generated metadata contains the declared type name, fields, field type tokens, declaration indexes, and enum variants. No registry or runtime initialization is generated.
Field alphabet sizes feed the static-model entropy coder. The derive
records symbols from an explicit #[entropy(symbols = N)] (1..=32768),
from a #[bits = N] range, or from primitive alphabets (bool → 2,
u8/i8 → 256); otherwise the field reports 0 and is coded
byte-by-byte.