#[non_exhaustive]pub struct Page {
pub start: usize,
pub rows: Vec<Vec<Value>>,
pub total: Option<usize>,
pub more: bool,
pub columns: Vec<usize>,
pub frozen: usize,
pub column_total: usize,
}Expand description
The rows one window shows, from VirtualTable::page.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start: usizeThe 0-based index of the first row shown. It is the table’s offset, moved back when that is past the end of a source that knows its length.
rows: Vec<Vec<Value>>The rows shown, each with one cell per column shown (see
columns).
total: Option<usize>How many rows the source has: its own count, or the end when this window reached it.
more: boolWhether a row is known to follow the window.
columns: Vec<usize>The 0-based indices of the columns shown, in order: the frozen ones, then the window’s. Every column when the table has no column window.
frozen: usizeHow many of columns are frozen.
column_total: usizeHow many columns the table has.
Implementations§
Source§impl Page
impl Page
Sourcepub fn column_range(&self) -> Range<usize> ⓘ
pub fn column_range(&self) -> Range<usize> ⓘ
The 0-based indices of the columns shown after the frozen ones.
Sourcepub fn column_position(&self, ascii: bool) -> Option<String>
pub fn column_position(&self, ascii: bool) -> Option<String>
Where the column window is, in words, when it leaves columns out:
columns 41–60 of 2,000 (counted from 1, frozen columns aside), or
column 7 of 12. None when every column is shown. ascii writes
the range with - instead of –.