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
BookkeptQty
and 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