polars_core::utils

Trait Container

Source
pub trait Container: Clone {
    // Required methods
    fn slice(&self, offset: i64, len: usize) -> Self;
    fn split_at(&self, offset: i64) -> (Self, Self);
    fn len(&self) -> usize;
    fn iter_chunks(&self) -> impl Iterator<Item = Self>;
    fn n_chunks(&self) -> usize;
    fn chunk_lengths(&self) -> impl Iterator<Item = usize>;
}

Required Methods§

Source

fn slice(&self, offset: i64, len: usize) -> Self

Source

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

Source

fn len(&self) -> usize

Source

fn iter_chunks(&self) -> impl Iterator<Item = Self>

Source

fn n_chunks(&self) -> usize

Source

fn chunk_lengths(&self) -> impl Iterator<Item = usize>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§