Get the integer representation of the value. # Panics This method will panic if the value is not an i32.
(&self)
| 218 | /// # Panics |
| 219 | /// This method will panic if the value is not an i32. |
| 220 | pub fn unwrap_i32(&self) -> i32 { |
| 221 | match self { |
| 222 | Self::I32(v) => *v, |
| 223 | v => panic!("expected value {v:?} to be i32"), |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | /// Get the integer representation of the value. |
| 228 | /// |
no outgoing calls
no test coverage detected