Push a popup onto the stack
(&mut self, popup: PopupType)
| 58 | |
| 59 | /// Push a popup onto the stack |
| 60 | pub fn push(&mut self, popup: PopupType) { |
| 61 | // Avoid duplicates at the top |
| 62 | if self.stack.last() != Some(&popup) { |
| 63 | self.stack.push(popup); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | /// Pop the top popup from the stack |
| 68 | pub fn pop(&mut self) -> Option<PopupType> { |
no outgoing calls
no test coverage detected