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

Method as_string_opt

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

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

(&self)

Source from the content-addressed store, hash-verified

859
860 /// Downcast this to a [`GenericStringArray`] returning `None` if not possible
861 fn as_string_opt<O: OffsetSizeTrait>(&self) -> Option<&GenericStringArray<O>> {
862 self.as_bytes_opt()
863 }
864
865 /// Downcast this to a [`GenericStringArray`] panicking if not possible
866 fn as_string<O: OffsetSizeTrait>(&self) -> &GenericStringArray<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