fn gen_inc_or_dec(&mut self, name: Option<String>) -> IntKeyPayload {
        let verb = if self.rng.gen::<bool>() { "inc" } else { "dec" };

        IntKeyPayload {
            name: name.unwrap_or_else(|| self.gen_name()),
            verb: verb.to_string(),
            value: self.rng.gen_range(1, 10),
        }
    }
/// Generate a RNG chosen inc or dec payload with the name supplied if not None,
/// else if name is None, choose a random name.
Generate a RNG chosen inc or dec payload with the name supplied if not None,
else if name is None, choose a random name.
Generate a RNG chosen inc or dec payload with the name supplied if not None else if name is None choose a random name .
fn gen_inc_or_dec(&mut self, name: Option<String>) -> IntKeyPayload {
        let verb = if self.rng.gen::<bool>() { "inc" } else { "dec" };
        IntKeyPayload {
            name: name.unwrap_or_else(|| self.gen_name()),
            verb: verb.to_string(),
            value: self.rng.gen_range(1, 10),
        }
    }
fn gen_inc_or_dec ( & mut self , name : Option < String > ) -> IntKeyPayload { let verb = if self . rng . gen :: < bool > ( ) { " " } else { " " } ; IntKeyPayload { name : name . unwrap_or_else ( | | self . gen_name ( ) ) , verb : verb . to_string ( ) , value : self . rng . gen_range ( 1 , 10 ) , } }
Generate a RNG chosen inc or dec payload with the name supplied if not None,
else if name is None, choose a random name.
Generate a RNG chosen inc or dec payload with the name supplied if not None else if name is None choose a random name .
&mut self
name
Option<String>