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

Method to_string_view_unchecked

arrow-array/src/array/byte_view_array.rs:1107–1109  ·  view source on GitHub ↗

Convert the [`BinaryViewArray`] to [`StringViewArray`] # Safety Caller is responsible for ensuring that items in array are utf8 data.

(self)

Source from the content-addressed store, hash-verified

1105 /// # Safety
1106 /// Caller is responsible for ensuring that items in array are utf8 data.
1107 pub unsafe fn to_string_view_unchecked(self) -> StringViewArray {
1108 unsafe { StringViewArray::new_unchecked(self.views, self.buffers, self.nulls) }
1109 }
1110}
1111
1112impl From<Vec<&[u8]>> for BinaryViewArray {

Callers 2

decode_string_viewFunction · 0.80
to_string_viewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected