Skip to main content

TableModelChange

Type Alias TableModelChange 

pub type TableModelChange = ListModelChange<u64>;
Expand description

One model notification batch consumed after the backing data has changed: a list’s change ([crate::widget::ListModelChange]) over the table’s row keys. Structural variants preserve mounted controls by stable row key; RowsChanged rebuilds controls only for the named rows.

Aliased Type§

pub enum TableModelChange {
    RowsInserted {
        index: usize,
        count: usize,
    },
    RowsRemoved {
        index: usize,
        count: usize,
    },
    RowsMoved {
        from: usize,
        to: usize,
        count: usize,
    },
    RowsChanged {
        keys: Vec<u64>,
    },
    Reset,
}

Variants§

§

RowsInserted

Fields

§index: usize
§count: usize
§

RowsRemoved

Fields

§index: usize
§count: usize
§

RowsMoved

to is the first destination index in the post-move order.

Fields

§from: usize
§count: usize
§

RowsChanged

Fields

§keys: Vec<u64>
§

Reset