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 Row
s that provides a variety of convenient adapters.
Provided Methods§
sourcefn chain<R: Row>(self, other: R) -> Chain<Self, R>where
Self: Sized,
fn chain<R: Row>(self, other: R) -> Chain<Self, R>where
Self: Sized,
Adapter for chaining two rows together.
sourcefn project(self, indices: &[usize]) -> Project<'_, Self>where
Self: Sized,
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.
fn display(&self) -> impl Display + '_
fn is_null_at(&self, index: usize) -> bool
Object Safety§
This trait is not object safe.