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

Method unwrap_singleton

winch/codegen/src/abi/mod.rs:406–409  ·  view source on GitHub ↗

Returns the first [`ABIOperand`]. Useful in situations where the function signature is known to have a single return. # Panics This function panics if the function signature contains more

(&self)

Source from the content-addressed store, hash-verified

404 /// # Panics
405 /// This function panics if the function signature contains more
406 pub fn unwrap_singleton(&self) -> &ABIOperand {
407 debug_assert_eq!(self.len(), 1);
408 &self.operands.inner[0]
409 }
410
411 /// Returns the size, in bytes of all the [`ABIOperand`]s in the stack.
412 pub fn size(&self) -> u32 {

Callers 1

emit_table_getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected