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

Method as_bytes

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

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

(&self)

Source from the content-addressed store, hash-verified

854
855 /// Downcast this to a [`GenericByteArray`] panicking if not possible
856 fn as_bytes<T: ByteArrayType>(&self) -> &GenericByteArray<T> {
857 self.as_bytes_opt().expect("byte array")
858 }
859
860 /// Downcast this to a [`GenericStringArray`] returning `None` if not possible
861 fn as_string_opt<O: OffsetSizeTrait>(&self) -> Option<&GenericStringArray<O>> {

Implementers 1

cast.rsarrow-array/src/cast.rs

Calls 1

as_bytes_optMethod · 0.80