Function mz_repr::row::encode::downcast_array
source ยท fn downcast_array<T: 'static>(array: &Arc<dyn Array>) -> Result<&T, Error>
Expand description
Small helper method to make downcasting an Array
return an error.
Note: it is super important that we downcast as few times as possible. Datum encoding is a very hot path and downcasting is relatively slow