Return List of [`f64`] represent the inner value of [`FloatValue`] or None if this type it's called from wrong [`Value`]
(&self)
| 377 | /// Return List of [`f64`] represent the inner value of [`FloatValue`] |
| 378 | /// or None if this type it's called from wrong [`Value`] |
| 379 | pub fn as_float(&self) -> Option<f64> { |
| 380 | if let Some(float_value) = self.as_any().downcast_ref::<FloatValue>() { |
| 381 | return Some(float_value.value); |
| 382 | } |
| 383 | None |
| 384 | } |
| 385 | |
| 386 | /// Return true if this value is [`IntValue`] or [`FloatValue`] |
| 387 | pub fn is_number(&self) -> bool { |
no test coverage detected