Pops the element at the top of the stack if it is an i64 const; returns `None` otherwise.
(&mut self)
| 412 | /// Pops the element at the top of the stack if it is an i64 const; |
| 413 | /// returns `None` otherwise. |
| 414 | pub fn pop_i64_const(&mut self) -> Option<i64> { |
| 415 | match self.peek() { |
| 416 | Some(v) => v.is_i64_const().then(|| self.pop().unwrap().unwrap_i64()), |
| 417 | _ => None, |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | /// Pops the element at the top of the stack if it is an f32 const; |
| 422 | /// returns `None` otherwise. |
nothing calls this directly
no test coverage detected