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

Method unwrap_i64

winch/codegen/src/stack.rs:231–236  ·  view source on GitHub ↗

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

(&self)

Source from the content-addressed store, hash-verified

229 /// # Panics
230 /// This method will panic if the value is not an i64.
231 pub fn unwrap_i64(&self) -> i64 {
232 match self {
233 Self::I64(v) => *v,
234 v => panic!("expected value {v:?} to be i64"),
235 }
236 }
237
238 /// Get the float representation of the value.
239 ///

Callers 1

pop_i64_constMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected