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

Method unwrap_i32

winch/codegen/src/stack.rs:220–225  ·  view source on GitHub ↗

Get the integer representation of the value. # Panics This method will panic if the value is not an i32.

(&self)

Source from the content-addressed store, hash-verified

218 /// # Panics
219 /// This method will panic if the value is not an i32.
220 pub fn unwrap_i32(&self) -> i32 {
221 match self {
222 Self::I32(v) => *v,
223 v => panic!("expected value {v:?} to be i32"),
224 }
225 }
226
227 /// Get the integer representation of the value.
228 ///

Callers 5

pop_i32_constMethod · 0.45
exception_from_hostFunction · 0.45
exception_across_no_wasmFunction · 0.45
gc_heap_oomFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected