MCPcopy Create free account
hub / github.com/apache/arrow-rs / as_primitive

Method as_primitive

arrow-array/src/cast.rs:848–850  ·  view source on GitHub ↗

Downcast this to a [`PrimitiveArray`] panicking if not possible

(&self)

Source from the content-addressed store, hash-verified

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>>;

Callers 13

cast_with_optionsFunction · 0.80
newMethod · 0.80
concat_primitivesFunction · 0.80
coerce_arrayFunction · 0.80
length_offsets_stringFunction · 0.80
length_offsets_binaryFunction · 0.80

Implementers 1

cast.rsarrow-array/src/cast.rs

Calls 1

as_primitive_optMethod · 0.80