pub struct Header {
pub iid_to_col: HashMap<Rc<str>, usize>,
pub cells: Vec<HeaderCell>,
pub iid_ctr: CyclingCounter,
}Fields§
§iid_to_col: HashMap<Rc<str>, usize>§cells: Vec<HeaderCell>§iid_ctr: CyclingCounterImplementations§
Source§impl Header
impl Header
pub fn new() -> Self
Sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Clears all mappings and cells from the header and resets the iid counter.
Sourcepub fn clone_props(&self, col: &usize) -> Option<CellProps>
pub fn clone_props(&self, col: &usize) -> Option<CellProps>
Clone header cell properties at col.
Sourcepub fn get_props(&self, col: &usize) -> Option<&CellProps>
pub fn get_props(&self, col: &usize) -> Option<&CellProps>
Get header cell properties reference at col.
Sourcepub fn add_cols(&mut self, to_add: Vec<(usize, HeaderCell)>)
pub fn add_cols(&mut self, to_add: Vec<(usize, HeaderCell)>)
Insert multiple items, add cols
Sourcepub fn del_cols(
&mut self,
sorted_seq: &[usize],
) -> Result<Vec<(usize, HeaderCell)>, String>
pub fn del_cols( &mut self, sorted_seq: &[usize], ) -> Result<Vec<(usize, HeaderCell)>, String>
Remove and return multiple items, delete cols
pub fn move_cols(&mut self, full_new_to_old: &[usize]) -> Result<(), String>
pub fn new_iid(&mut self) -> Result<String, String>
Trait Implementations§
Auto Trait Implementations§
impl !Send for Header
impl !Sync for Header
impl Freeze for Header
impl RefUnwindSafe for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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