risingwave_common::row

Trait RowExt

source
pub trait RowExt: Row {
    // Provided methods
    fn chain<R: Row>(self, other: R) -> Chain<Self, R>
       where Self: Sized { ... }
    fn project(self, indices: &[usize]) -> Project<'_, Self>
       where Self: Sized { ... }
    fn slice(self, range: impl RangeBounds<usize>) -> Slice<Self>
       where Self: Sized { ... }
    fn display(&self) -> impl Display + '_ { ... }
    fn is_null_at(&self, index: usize) -> bool { ... }
}
Expand description

An extension trait for Rows that provides a variety of convenient adapters.

Provided Methods§

source

fn chain<R: Row>(self, other: R) -> Chain<Self, R>
where Self: Sized,

Adapter for chaining two rows together.

source

fn project(self, indices: &[usize]) -> Project<'_, Self>
where Self: Sized,

Adapter for projecting a row onto a subset of its columns with the given indices.

§Panics

Panics if indices contains an out-of-bounds index.

source

fn slice(self, range: impl RangeBounds<usize>) -> Slice<Self>
where Self: Sized,

Adapter for slicing a row with the given range.

§Panics

Panics if range is out of bounds.

source

fn display(&self) -> impl Display + '_

source

fn is_null_at(&self, index: usize) -> bool

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<R: Row> RowExt for R