std.mem.budget [core] std.mem.budget.charged pub fn charged(r: region) -> int — The bytes charged to r's ledger — [mem.region.account.1]'s cumulative count, named. std.mem.budget.live pub fn live() -> int — The process-wide total the implementation holds for LIVE first-class and sugar regions — [mem.region.account.2], named. std.mem.budget.with_cap pub fn with_cap(n: int, f: fn()) -> () ! {exhausted} — Runs f under a region capped at n LEDGER UNITS, inside a proc, so that a breach comes back as the row exhausted instead of ending the process.