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 i
th 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.
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.