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.