Return List of [`i64`] represent the inner value of [`IntValue`] or None if this type it's called from wrong [`Value`]
(&self)
| 363 | /// Return List of [`i64`] represent the inner value of [`IntValue`] |
| 364 | /// or None if this type it's called from wrong [`Value`] |
| 365 | pub fn as_int(&self) -> Option<i64> { |
| 366 | if let Some(int_value) = self.as_any().downcast_ref::<IntValue>() { |
| 367 | return Some(int_value.value); |
| 368 | } |
| 369 | None |
| 370 | } |
| 371 | |
| 372 | /// Return true if this value is [`FloatValue`] |
| 373 | pub fn is_float(&self) -> bool { |
no test coverage detected