Get the register representation of the value. # Panics This method will panic if the value is not a register.
(&self)
| 207 | /// # Panics |
| 208 | /// This method will panic if the value is not a register. |
| 209 | pub fn unwrap_reg(&self) -> TypedReg { |
| 210 | match self { |
| 211 | Self::Reg(tr) => *tr, |
| 212 | v => panic!("expected value {v:?} to be a register"), |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | /// Get the integer representation of the value. |
| 217 | /// |
no outgoing calls
no test coverage detected