Skip to main content

pp_

Macro pp_ 

Source
macro_rules! pp_ {
    ($integer:ident) => { ... };
}
Expand description

Increments the provided integer by one.

   use inc_dec::pp_;

   let mut val = 1;

   pp_!(val);

   assert_eq!(2, val);