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

Method as_string

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

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

(&self)

Source from the content-addressed store, hash-verified

864
865 /// Downcast this to a [`GenericStringArray`] panicking if not possible
866 fn as_string<O: OffsetSizeTrait>(&self) -> &GenericStringArray<O> {
867 self.as_bytes_opt().expect("string array")
868 }
869
870 /// Downcast this to a [`GenericBinaryArray`] returning `None` if not possible
871 fn as_binary_opt<O: OffsetSizeTrait>(&self) -> Option<&GenericBinaryArray<O>> {

Callers 2

like_opFunction · 0.45
regexp_matchFunction · 0.45

Implementers 1

cast.rsarrow-array/src/cast.rs

Calls 1

as_bytes_optMethod · 0.80

Tested by

no test coverage detected