Return true if this value is [`ArrayValue`] and element type match condition
(&self, condition: fn(&Box<dyn DataType>) -> bool)
| 465 | |
| 466 | /// Return true if this value is [`ArrayValue`] and element type match condition |
| 467 | pub fn is_array_of(&self, condition: fn(&Box<dyn DataType>) -> bool) -> bool { |
| 468 | if let Some(array) = self.as_any().downcast_ref::<ArrayValue>() { |
| 469 | return condition(&array.base_type); |
| 470 | } |
| 471 | false |
| 472 | } |
| 473 | |
| 474 | /// Return List of [`Value`] represent the inner values of [`ArrayValue`] |
| 475 | /// or None if this type it's called from wrong [`Value`] |
no test coverage detected