Get the integer representation of the value. # Panics This method will panic if the value is not an i64.
(&self)
| 229 | /// # Panics |
| 230 | /// This method will panic if the value is not an i64. |
| 231 | pub fn unwrap_i64(&self) -> i64 { |
| 232 | match self { |
| 233 | Self::I64(v) => *v, |
| 234 | v => panic!("expected value {v:?} to be i64"), |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | /// Get the float representation of the value. |
| 239 | /// |