pub trait Resizable {
// Required methods
fn swap(&mut self, lhs: Position, rhs: Position);
fn swap_row(&mut self, lhs: usize, rhs: usize);
fn swap_column(&mut self, lhs: usize, rhs: usize);
fn push_row(&mut self);
fn push_column(&mut self);
fn remove_row(&mut self, row: usize);
fn remove_column(&mut self, column: usize);
fn insert_row(&mut self, row: usize);
}
Expand description
A Grid
representation of a data set which can be modified by moving rows/columns around.
Required Methods§
Sourcefn swap_column(&mut self, lhs: usize, rhs: usize)
fn swap_column(&mut self, lhs: usize, rhs: usize)
Swap columns with one another.
Sourcefn push_column(&mut self)
fn push_column(&mut self)
Adds a new column to a data set.
Sourcefn remove_row(&mut self, row: usize)
fn remove_row(&mut self, row: usize)
Removes a row from a data set by index.
Sourcefn remove_column(&mut self, column: usize)
fn remove_column(&mut self, column: usize)
Removes a column from a data set by index.
Sourcefn insert_row(&mut self, row: usize)
fn insert_row(&mut self, row: usize)
Inserts a row to specific by row index.