Skip to main content

RowSelection

Trait RowSelection 

Source
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§

Source

type View

The view type returned by selection operations

Required Methods§

Source

fn r<S>(&self, selection: S) -> Self::View
where 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

Source

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.
Source§

impl RowSelection for ArrayV

Available on crate feature select only.
Source§

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.
Source§

impl RowSelection for TableV

Available on crate feature select only.