Trait ella_common::row::RowFormatView
source · pub trait RowFormatView<R>: Debug + IntoIterator<Item = R, IntoIter = RowViewIter<R, Self>> + Clone + 'static {
// Required methods
fn len(&self) -> usize;
fn row(&self, i: usize) -> R;
unsafe fn row_unchecked(&self, i: usize) -> R;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn iter(&self) -> RowViewIter<R, Self> ⓘ { ... }
}Expand description
Wrapper around Arrow data that implements typed indexing by row.
Required Methods§
sourceunsafe fn row_unchecked(&self, i: usize) -> R
unsafe fn row_unchecked(&self, i: usize) -> R
Returns the ith row without bounds checking.
Safety
Implementations must return a valid result when i < len.
Calling this method where i >= len is undefined behavior.
Provided Methods§
sourcefn iter(&self) -> RowViewIter<R, Self> ⓘ
fn iter(&self) -> RowViewIter<R, Self> ⓘ
Returns an iterator over the rows in this view.