(&mut self, a: f64)
| 520 | } |
| 521 | } |
| 522 | fn record_error(&mut self, a: f64) -> Result<f64, TrappableE2> { |
| 523 | if a == 0.0 { |
| 524 | Ok(a) |
| 525 | } else if a == 1.0 { |
| 526 | Err(imports::E2 { |
| 527 | line: 420, |
| 528 | col: 1312, |
| 529 | })? |
| 530 | } else { |
| 531 | Err(TrappableE2::Trap(format_err!("record_error: trap"))) |
| 532 | } |
| 533 | } |
| 534 | } |
| 535 | |
| 536 | let mut linker = Linker::new(&engine); |