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

Method new_i32

pulley/src/interp.rs:431–435  ·  view source on GitHub ↗
(x: i32)

Source from the content-addressed store, hash-verified

429#[expect(missing_docs, reason = "self-describing methods")]
430impl XRegVal {
431 pub fn new_i32(x: i32) -> Self {
432 let mut val = XRegVal::default();
433 val.set_i32(x);
434 val
435 }
436
437 pub fn new_u32(x: u32) -> Self {
438 let mut val = XRegVal::default();

Callers

nothing calls this directly

Calls 1

set_i32Method · 0.80

Tested by

no test coverage detected