DeferredTableDataSource

Trait DeferredTableDataSource 

Source
pub trait DeferredTableDataSource {
    // Required method
    fn get_dimensions(&self) -> TableDimensions;

    // Provided methods
    fn prepare(&mut self) { ... }
    fn finalize(&mut self) { ... }
    fn rows_to_filter(&self) -> Option<&[usize]> { ... }
    fn columns_to_filter(&self) -> Option<&[usize]> { ... }
    fn row_ordering(&self) -> Option<&[usize]> { ... }
    fn column_ordering(&self) -> Option<&[usize]> { ... }
}

Required Methods§

Provided Methods§

Source

fn prepare(&mut self)

called once per frame, before any other methods are used.

Source

fn finalize(&mut self)

called once per frame, after the source has been used.

Source

fn rows_to_filter(&self) -> Option<&[usize]>

return a list of rows indexes to filter/exclude.

Source

fn columns_to_filter(&self) -> Option<&[usize]>

return a list of column indexes to filter/exclude.

Source

fn row_ordering(&self) -> Option<&[usize]>

return a list of row indexes to set the ordering of rows

the index of the slice corresponds to the index of the visible row the value of the slace at the index corresponds to the index of the data

e.g. Some(vec![1,0]) would swap rows 0 and 1.

Source

fn column_ordering(&self) -> Option<&[usize]>

return a list of row indexes to set the ordering of columns

the index of the slice corresponds to the index of the visible column the value of the slace at the index corresponds to the index of the data

e.g. Some(vec![1,0]) would swap columns 0 and 1.

Implementations on Foreign Types§

Source§

impl<A, B> DeferredTableDataSource for &[(A, B)]

Source§

impl<A, B, C> DeferredTableDataSource for &[(A, B, C)]

Source§

impl<A, B, C, D> DeferredTableDataSource for &[(A, B, C, D)]

Source§

impl<A, B, C, D, E> DeferredTableDataSource for &[(A, B, C, D, E)]

Source§

impl<A, B, C, D, E, F> DeferredTableDataSource for &[(A, B, C, D, E, F)]

Source§

impl<A, B, C, D, E, F, G> DeferredTableDataSource for &[(A, B, C, D, E, F, G)]

Source§

impl<A, B, C, D, E, F, G, H> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H)]

Source§

impl<A, B, C, D, E, F, G, H, I> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H, I)]

Source§

impl<A, B, C, D, E, F, G, H, I, J> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H, I, J)]

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H, I, J, K)]

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H, I, J, K, L)]

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H, I, J, K, L, M)]

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H, I, J, K, L, M, N)]

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)]

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> DeferredTableDataSource for &[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)]

Implementors§