MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / record_error

Method record_error

tests/all/component_model/bindgen/results.rs:522–533  ·  view source on GitHub ↗
(&mut self, a: f64)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

OkFunction · 0.85
TrapClass · 0.50

Tested by

no test coverage detected