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.

Re-exportsΒ§

use super::*; πŸ”’

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