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

Method as_binary_opt

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

Downcast this to a [`GenericBinaryArray`] returning `None` if not possible

(&self)

Source from the content-addressed store, hash-verified

869
870 /// Downcast this to a [`GenericBinaryArray`] returning `None` if not possible
871 fn as_binary_opt<O: OffsetSizeTrait>(&self) -> Option<&GenericBinaryArray<O>> {
872 self.as_bytes_opt()
873 }
874
875 /// Downcast this to a [`GenericBinaryArray`] panicking if not possible
876 fn as_binary<O: OffsetSizeTrait>(&self) -> &GenericBinaryArray<O> {

Callers

nothing calls this directly

Implementers 1

cast.rsarrow-array/src/cast.rs

Calls 1

as_bytes_optMethod · 0.80

Tested by

no test coverage detected