Downcast this to a [`PrimitiveArray`] panicking if not possible
(&self)
| 846 | |
| 847 | /// Downcast this to a [`PrimitiveArray`] panicking if not possible |
| 848 | fn as_primitive<T: ArrowPrimitiveType>(&self) -> &PrimitiveArray<T> { |
| 849 | self.as_primitive_opt().expect("primitive array") |
| 850 | } |
| 851 | |
| 852 | /// Downcast this to a [`GenericByteArray`] returning `None` if not possible |
| 853 | fn as_bytes_opt<T: ByteArrayType>(&self) -> Option<&GenericByteArray<T>>; |