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

Method as_struct

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

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

(&self)

Source from the content-addressed store, hash-verified

910
911 /// Downcast this to a [`StructArray`] panicking if not possible
912 fn as_struct(&self) -> &StructArray {
913 self.as_struct_opt().expect("struct array")
914 }
915
916 /// Downcast this to a [`UnionArray`] returning `None` if not possible
917 fn as_union_opt(&self) -> Option<&UnionArray>;

Implementers 1

cast.rsarrow-array/src/cast.rs

Calls 1

as_struct_optMethod · 0.80