pub struct RowWindow { /* private fields */ }Expand description
One window of a RowSource, with its first rows and its count; see
the module docs.
Implementations§
Source§impl RowWindow
impl RowWindow
Sourcepub fn reader() -> WindowReader
pub fn reader() -> WindowReader
How to read: offset, length, sample and counting.
Sourcepub fn read(
source: impl RowSource,
offset: usize,
len: usize,
) -> Result<Self, DataError>
pub fn read( source: impl RowSource, offset: usize, len: usize, ) -> Result<Self, DataError>
The rows offset..offset + len of source, counting the rest.
Sourcepub fn total(&self) -> Option<usize>
pub fn total(&self) -> Option<usize>
How many rows the source had, when it was read to the end.
Sourcepub fn to_virtual_table(&self) -> VirtualTable<&RowWindow>
pub fn to_virtual_table(&self) -> VirtualTable<&RowWindow>
The window as a virtualised table: typed alignment from the schema (or the sampled cells), positioned on the window.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RowWindow
impl RefUnwindSafe for RowWindow
impl Send for RowWindow
impl Sync for RowWindow
impl Unpin for RowWindow
impl UnsafeUnpin for RowWindow
impl UnwindSafe for RowWindow
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more