Return List of [`Value`] represent the inner values of [`ArrayValue`] or None if this type it's called from wrong [`Value`]
(&self)
| 474 | /// Return List of [`Value`] represent the inner values of [`ArrayValue`] |
| 475 | /// or None if this type it's called from wrong [`Value`] |
| 476 | pub fn as_array(&self) -> Option<Vec<Box<dyn Value>>> { |
| 477 | if let Some(array_value) = self.as_any().downcast_ref::<ArrayValue>() { |
| 478 | return Some(array_value.values.clone()); |
| 479 | } |
| 480 | None |
| 481 | } |
| 482 | |
| 483 | /// Return true if this value is [`RangeValue`] |
| 484 | pub fn is_range(&self) -> bool { |
no test coverage detected