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

Method as_string_view

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

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

(&self)

Source from the content-addressed store, hash-verified

884
885 /// Downcast this to a [`StringViewArray`] panicking if not possible
886 fn as_string_view(&self) -> &StringViewArray {
887 self.as_byte_view_opt().expect("string view array")
888 }
889
890 /// Downcast this to a [`BinaryViewArray`] returning `None` if not possible
891 fn as_binary_view_opt(&self) -> Option<&BinaryViewArray> {

Implementers 1

cast.rsarrow-array/src/cast.rs

Calls 1

as_byte_view_optMethod · 0.80