Macro below_common::every_n
source · [−]macro_rules! every_n {
($n:expr, $ex:expr) => { ... };
}Expand description
Execute an expression every n times. For example
every_n!(1 + 2, println!("I'm mod 3") will print on the 1st,
4th, and so on calls.