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)
| 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 { |