Pops the element at the top of the stack if it is an i32 const; returns `None` otherwise.
(&mut self)
| 403 | /// Pops the element at the top of the stack if it is an i32 const; |
| 404 | /// returns `None` otherwise. |
| 405 | pub fn pop_i32_const(&mut self) -> Option<i32> { |
| 406 | match self.peek() { |
| 407 | Some(v) => v.is_i32_const().then(|| self.pop().unwrap().unwrap_i32()), |
| 408 | _ => None, |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | /// Pops the element at the top of the stack if it is an i64 const; |
| 413 | /// returns `None` otherwise. |
nothing calls this directly
no test coverage detected