Skip to main content

swap_tables

Function swap_tables 

Source
fn swap_tables(tables: &mut [Table], from: usize, to: usize)
Expand description

Two tables trade places. Each read from the file keeps its place in it (Table::position), which orders the file when written: the places stay with the slots, or the file would come back in its old order.