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

Method as_primitive_opt

arrow-array/src/cast.rs:1005–1007  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1003 }
1004
1005 fn as_primitive_opt<T: ArrowPrimitiveType>(&self) -> Option<&PrimitiveArray<T>> {
1006 self.as_any().downcast_ref()
1007 }
1008
1009 fn as_bytes_opt<T: ByteArrayType>(&self) -> Option<&GenericByteArray<T>> {
1010 self.as_any().downcast_ref()

Callers 1

as_primitiveMethod · 0.80

Calls 2

as_anyMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected