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§
fn check_bound(&self, offset: usize) -> bool
sourceunsafe fn _split_at_unchecked(&self, offset: usize) -> (Self, Self)
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§
sourcefn split_at(&self, offset: usize) -> (Self, Self)
fn split_at(&self, offset: usize) -> (Self, Self)
Split Self
at offset
where offset <= self.len()
.
sourceunsafe fn split_at_unchecked(&self, offset: usize) -> (Self, Self)
unsafe fn split_at_unchecked(&self, offset: usize) -> (Self, Self)
Object Safety§
This trait is not object safe.