/// Press the given `KeypadButton` on self.
///
/// Returns true if the button could be pressed, false otherwise (the button doesn't
/// belongs in self).
Press the given `KeypadButton` on self.
Returns true if the button could be pressed, false otherwise (the button doesn't
belongs in self).
Press the given ` KeypadButton ` on self . Returns true if the button could be pressed false otherwise ( the button doesn ' t belongs in self ) .
fn press(&mut self, target: KeypadButton) -> bool {
            if !self.has_button(target) {
                return false;
            } else {
                self.pressed.push(target);
                true
            }
        }
fn press ( & mut self , target : KeypadButton ) -> bool { if ! self . has_button ( target ) { return false ; } else { self . pressed . push ( target ) ; true } }
Press the given `KeypadButton` on self.
Press the given ` KeypadButton ` on self .
&mut self
target
KeypadButton