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

Method unwrap_mem

winch/codegen/src/stack.rs:261–266  ·  view source on GitHub ↗

Returns the underlying memory value if it is one, panics otherwise.

(&self)

Source from the content-addressed store, hash-verified

259
260 /// Returns the underlying memory value if it is one, panics otherwise.
261 pub fn unwrap_mem(&self) -> Memory {
262 match self {
263 Self::Memory(m) => *m,
264 v => panic!("expected value {v:?} to be a Memory"),
265 }
266 }
267
268 /// Check whether the value is an i32 constant.
269 pub fn is_i32_const(&self) -> bool {

Callers 2

sizeofMethod · 0.80
pop_to_regMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected