Returns the underlying memory value if it is one, panics otherwise.
(&self)
| 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 { |
no outgoing calls
no test coverage detected