pub trait RowSelection {
type View;
// Required methods
fn r<S>(&self, selection: S) -> Self::View
where S: DataSelector;
fn get_row_count(&self) -> usize;
}Expand description
Trait for types that support row/data selection
Required Associated Types§
Required Methods§
Sourcefn r<S>(&self, selection: S) -> Self::Viewwhere
S: DataSelector,
fn r<S>(&self, selection: S) -> Self::Viewwhere
S: DataSelector,
Select rows by index or range
§Examples
table.r(5) // single row table.r(&[1, 3, 5]) // specific rows table.r(0..10) // row range
Sourcefn get_row_count(&self) -> usize
fn get_row_count(&self) -> usize
Get the count for data resolution
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl RowSelection for Array
Available on crate features select and views only.
impl RowSelection for Array
Available on crate features
select and views only.Source§impl RowSelection for FieldArray
Available on crate features select and views only.
impl RowSelection for FieldArray
Available on crate features
select and views only.Source§impl RowSelection for Table
Available on crate features select and views only.
impl RowSelection for Table
Available on crate features
select and views only.