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.
Re-exportsΒ§
use super::*;π
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