Returns the f32 const on top of the stack or None if there isn't one.
(&mut self)
| 466 | |
| 467 | /// Returns the f32 const on top of the stack or None if there isn't one. |
| 468 | pub fn pop_f32_const(&mut self) -> Option<Ieee32> { |
| 469 | let top = self.stack.peek().expect("value at stack top"); |
| 470 | |
| 471 | if top.is_f32_const() { |
| 472 | let val = self |
| 473 | .stack |
| 474 | .pop_f32_const() |
| 475 | .expect("f32 const value at stack top"); |
| 476 | Some(val) |
| 477 | } else { |
| 478 | None |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | /// Returns the f64 const on top of the stack or None if there isn't one. |
| 483 | pub fn pop_f64_const(&mut self) -> Option<Ieee64> { |
no test coverage detected