Get the float representation of the value. # Panics This method will panic if the value is not an f64.
(&self)
| 251 | /// # Panics |
| 252 | /// This method will panic if the value is not an f64. |
| 253 | pub fn unwrap_f64(&self) -> Ieee64 { |
| 254 | match self { |
| 255 | Self::F64(v) => *v, |
| 256 | v => panic!("expected value {v:?} to be f64"), |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | /// Returns the underlying memory value if it is one, panics otherwise. |
| 261 | pub fn unwrap_mem(&self) -> Memory { |