polars_utils::slice

Trait SliceAble

Source
pub trait SliceAble {
    // Required methods
    unsafe fn slice_unchecked(&self, range: Range<usize>) -> Self;
    fn slice(&self, range: Range<usize>) -> Self;
}

Required Methods§

Source

unsafe fn slice_unchecked(&self, range: Range<usize>) -> Self

§Safety

no bound checks.

Source

fn slice(&self, range: Range<usize>) -> Self

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.

Implementations on Foreign Types§

Source§

impl<T> SliceAble for &[T]

Source§

unsafe fn slice_unchecked(&self, range: Range<usize>) -> Self

Source§

fn slice(&self, range: Range<usize>) -> Self

Implementors§