Type Alias polars_arrow::array::BinaryViewArray
source · pub type BinaryViewArray = BinaryViewArrayGeneric<[u8]>;
Aliased Type§
struct BinaryViewArray { /* private fields */ }
Implementations§
source§impl BinaryViewArray
impl BinaryViewArray
sourcepub fn validate_utf8(&self) -> PolarsResult<()>
pub fn validate_utf8(&self) -> PolarsResult<()>
Validate the underlying bytes on UTF-8.
sourcepub fn to_utf8view(&self) -> PolarsResult<Utf8ViewArray>
pub fn to_utf8view(&self) -> PolarsResult<Utf8ViewArray>
Convert BinaryViewArray
to Utf8ViewArray
.
sourcepub unsafe fn to_utf8view_unchecked(&self) -> Utf8ViewArray
pub unsafe fn to_utf8view_unchecked(&self) -> Utf8ViewArray
Convert BinaryViewArray
to Utf8ViewArray
without checking UTF-8.
§Safety
The caller must ensure the underlying data is valid UTF-8.