pub struct Sheet {
pub name: String,
pub cells: BTreeMap<(u32, u32), Cell>,
pub columns: Vec<Column>,
pub gridlines: bool,
pub active_cell: (u32, u32),
pub shared_formulas: u32,
}Expand description
One sheet: its cells by (row, column), both 1-based.
Fields§
§name: String§cells: BTreeMap<(u32, u32), Cell>§columns: Vec<Column>§gridlines: bool§active_cell: (u32, u32)The selected cell when the sheet opens, (row, column).
How many shared formulas the sheet holds; the next one’s index.
Implementations§
Source§impl Sheet
impl Sheet
pub fn new(name: &str) -> Sheet
pub fn set(&mut self, row: u32, col: u32, cell: Cell)
Sourcepub fn set_formula_dynamic(&mut self, range: A1Range, text: &str, style: u32)
pub fn set_formula_dynamic(&mut self, range: A1Range, text: &str, style: u32)
A formula’s text (without its =) into every cell of a range: one
plain formula for one cell, a shared formula for more.
A formula whose function can return an array, into every cell of a
range as Excel stores a Formula2 entry of it: a dynamic-array
formula per cell (a dynamic-array formula cannot be shared), its
references moved by the cell’s distance from the top-left one, as
Excel moves them when a formula is filled (the mover is
crate::refers::shift_a1_references since PORT.8, slice 8b).
pub fn set_formula(&mut self, range: A1Range, text: &str, style: u32)
Trait Implementations§
impl StructuralPartialEq for Sheet
Auto Trait Implementations§
impl Freeze for Sheet
impl RefUnwindSafe for Sheet
impl Send for Sheet
impl Sync for Sheet
impl Unpin for Sheet
impl UnsafeUnpin for Sheet
impl UnwindSafe for Sheet
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