Function as_run_array
pub fn as_run_array<T>(arr: &dyn Array) -> &RunArray<T>where
T: RunEndIndexType,
Expand description
Force downcast of an Array
, such as an ArrayRef
to
RunArray<T>
, panic’ing on failure.
§Example
let arr: RunArray<Int32Type> = vec![Some("foo")].into_iter().collect();
let arr: ArrayRef = std::sync::Arc::new(arr);
let run_array: &RunArray<Int32Type> = as_run_array::<Int32Type>(&arr);