Skip to main content

Module repr

Module repr 

Source
Expand description

What one eight-byte word means.

ADR 0034 keeps the word untagged and puts its meaning in static metadata. This is that metadata at its smallest unit: one Repr per slot, per field, per array element.

A Repr describes one word, not one value. A value may occupy several consecutive slots, and what says how many is a Layout — a run of these. The two are separate for the reason the collector is: it asks exactly one question, of one word at a time, and a reference map that is one bit per slot answers it without a range table.

Structs§

RefMap
Which slots of a frame are Repr::Ref, as one bit each.

Enums§

Repr
The interpretation of one word.