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_ Bookkept Qty - Implement
BookkeptQtyand its supertraits
Structsยง
- Claimed
Qty ๐ - โCachedโ claim, on behalf of a Participant
- Particip
Qty ๐ - Qty used by a participant, found in
PRecord.used. - Total
Qty ๐ - Total used,
TotalQtyNotifier.total_used, found inState.total_used.
Traitsยง
- Bookkeepable
Qty ๐ - Memory quantities that can work with bookkept quantities
- Bookkept
Qty ๐ - Bookkept memory quantities