Trait SliceFn

Source
pub trait SliceFn {
    // Required method
    fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>;
}
Expand description

Limit array to start…stop range

Required Methods§

Source

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Return a zero-copy slice of an array, between start (inclusive) and end (exclusive). If start >= stop, returns an empty array of the same type as self. Assumes that start or stop are out of bounds, may panic otherwise.

Implementations on Foreign Types§

Source§

impl SliceFn for ALPArray

Source§

fn slice(&self, start: usize, end: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for ALPRDArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for ByteBoolArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for DateTimePartsArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for DictArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for BitPackedArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for DeltaArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for FoRArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for FSSTArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for RoaringBoolArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for RoaringIntArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for RunEndBoolArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for RunEndArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Source§

impl SliceFn for ZigZagArray

Source§

fn slice(&self, start: usize, stop: usize) -> Result<Array, VortexError>

Implementors§