Skip to main content

replace

Function replace 

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

Replace the current budget returning a guard that will restore the one which was in effect when it is dropped.