pub trait BinaryNameSpaceImpl: AsBinary {
// Provided methods
fn contains(&self, lit: &[u8]) -> BooleanChunked { ... }
fn contains_chunked(
&self,
lit: &BinaryChunked,
) -> PolarsResult<BooleanChunked> { ... }
fn ends_with(&self, sub: &[u8]) -> BooleanChunked { ... }
fn starts_with(&self, sub: &[u8]) -> BooleanChunked { ... }
fn starts_with_chunked(
&self,
prefix: &BinaryChunked,
) -> PolarsResult<BooleanChunked> { ... }
fn ends_with_chunked(
&self,
suffix: &BinaryChunked,
) -> PolarsResult<BooleanChunked> { ... }
fn size_bytes(&self) -> UInt32Chunked { ... }
}
Provided Methods§
Sourcefn contains(&self, lit: &[u8]) -> BooleanChunked
fn contains(&self, lit: &[u8]) -> BooleanChunked
Check if binary contains given literal
fn contains_chunked(&self, lit: &BinaryChunked) -> PolarsResult<BooleanChunked>
Sourcefn ends_with(&self, sub: &[u8]) -> BooleanChunked
fn ends_with(&self, sub: &[u8]) -> BooleanChunked
Check if strings ends with a substring
Sourcefn starts_with(&self, sub: &[u8]) -> BooleanChunked
fn starts_with(&self, sub: &[u8]) -> BooleanChunked
Check if strings starts with a substring
fn starts_with_chunked( &self, prefix: &BinaryChunked, ) -> PolarsResult<BooleanChunked>
fn ends_with_chunked( &self, suffix: &BinaryChunked, ) -> PolarsResult<BooleanChunked>
Sourcefn size_bytes(&self) -> UInt32Chunked
fn size_bytes(&self) -> UInt32Chunked
Get the size of the binary values in bytes.