Trait polars_arrow::array::Splitable

source ·
pub trait Splitable: Sized {
    // Required methods
    fn check_bound(&self, offset: usize) -> bool;
    unsafe fn _split_at_unchecked(&self, offset: usize) -> (Self, Self);

    // Provided methods
    fn split_at(&self, offset: usize) -> (Self, Self) { ... }
    unsafe fn split_at_unchecked(&self, offset: usize) -> (Self, Self) { ... }
}

Required Methods§

source

fn check_bound(&self, offset: usize) -> bool

source

unsafe fn _split_at_unchecked(&self, offset: usize) -> (Self, Self)

Internal implementation of split_at_unchecked. For any usage, prefer the using split_at or split_at_unchecked.

§Safety

Safe if offset <= self.len().

Provided Methods§

source

fn split_at(&self, offset: usize) -> (Self, Self)

Split Self at offset where offset <= self.len().

source

unsafe fn split_at_unchecked(&self, offset: usize) -> (Self, Self)

Split Self at offset without checking offset <= self.len().

§Safety

Safe if offset <= self.len().

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Splitable for Option<Bitmap>

source§

fn check_bound(&self, offset: usize) -> bool

source§

unsafe fn _split_at_unchecked(&self, offset: usize) -> (Self, Self)

Implementors§