Skip to main content

Module bookkeeping

Module bookkeeping 

Source
Expand description

Quantity bookkeeping

Newtypes which wrap up a Qty (an amount of memory), and which assure proper accounting.

Methods are provided for the specific transactions which are correct, in the accounting scheme in tracker. So these types embody the data structure (fields and invariants) from tracker.

ยงPanics

In tests, these types panic if they are dropped when nonzero, if thatโ€™s against the rules.

Macrosยง

derive_deftly_template_BookkeptQty ๐Ÿ”’
Implement BookkeptQty and its supertraits

Structsยง

ClaimedQty ๐Ÿ”’
โ€œCachedโ€ claim, on behalf of a Participant
ParticipQty ๐Ÿ”’
Qty used by a participant, found in PRecord.used.
TotalQty ๐Ÿ”’
Total used, TotalQtyNotifier.total_used, found in State.total_used.

Traitsยง

BookkeepableQty ๐Ÿ”’
Memory quantities that can work with bookkept quantities
BookkeptQty ๐Ÿ”’
Bookkept memory quantities