pub struct TableGrid {
pub index: Index,
pub header: Header,
pub merged: HashMap<(usize, usize), (usize, usize)>,
pub frozen_rows: Vec<usize>,
pub frozen_cols: Vec<usize>,
pub disp_rows: Vec<usize>,
pub disp_cols: Vec<usize>,
pub canvas_rows: Vec<u64>,
pub canvas_cols: Vec<u64>,
pub undo_stack: BoundedDeque<Rc<RefCell<EventData>>>,
pub redo_stack: BoundedDeque<Rc<RefCell<EventData>>>,
}Fields§
§index: Index§header: Header§merged: HashMap<(usize, usize), (usize, usize)>§frozen_rows: Vec<usize>§frozen_cols: Vec<usize>§disp_rows: Vec<usize>§disp_cols: Vec<usize>§canvas_rows: Vec<u64>§canvas_cols: Vec<u64>§undo_stack: BoundedDeque<Rc<RefCell<EventData>>>§redo_stack: BoundedDeque<Rc<RefCell<EventData>>>Implementations§
Source§impl TableGrid
impl TableGrid
pub fn new(max_undos: usize) -> Self
pub fn push_rows(&mut self, sorted_seq: &[usize])
pub fn push_cols(&mut self, sorted_seq: &[usize])
pub fn pull_rows(&mut self, sorted_seq: &[usize])
pub fn pull_cols(&mut self, sorted_seq: &[usize])
pub fn move_rows( &mut self, full_old_to_new: &[usize], full_new_to_old: &[usize], ) -> Result<(), String>
pub fn move_cols( &mut self, full_old_to_new: &[usize], full_new_to_old: &[usize], ) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TableGrid
impl !Send for TableGrid
impl !Sync for TableGrid
impl !UnwindSafe for TableGrid
impl Freeze for TableGrid
impl Unpin for TableGrid
impl UnsafeUnpin for TableGrid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more