pub fn max_iter(max_iter: u32)
Expand description
Instead of having to pass the GUARD_ID
parameter to every call to _g
,
you can use this function to generate a unique GUARD_ID
for each call
automatically.
ยงExample
let mut i = 0;
while {
max_iter(MAXITER + 1);
i < MAXITER
} {
// your code
i += 1;
}