replace

Function replace 

Source
pub fn replace(budget: usize) -> BudgetGuard
Expand description

Replace the current budget returning a guard that will release it.

Use BudgetGuard::take to take permites from the returned budget.