pub struct Workbook {
pub sheets: Vec<Sheet>,
pub styles: Styles,
pub active_sheet: usize,
pub defined_names: Vec<(String, String)>,
}Expand description
The workbook: its sheets in tab order, their formats, and which tab is open when the file opens.
Fields§
§sheets: Vec<Sheet>§styles: Styles§active_sheet: usize§defined_names: Vec<(String, String)>The workbook’s defined names: each a name and its formula’s text
without the = (a string constant is "text", inner quotes doubled).
Implementations§
Source§impl Workbook
impl Workbook
pub fn new() -> Workbook
Sourcepub fn has_dynamic_formulas(&self) -> bool
pub fn has_dynamic_formulas(&self) -> bool
Whether any cell holds a dynamic-array formula, which the file then needs its metadata part for.
Sourcepub fn find_sheet(&self, name: &str) -> Option<usize>
pub fn find_sheet(&self, name: &str) -> Option<usize>
The index of the sheet of that name, compared as Excel compares sheet
names, without case: fold’s test, which lowers the ASCII capitals
alone, made byte by byte in place (KERNEL.25). Every reference of
every evaluation asks it, and folding each name into a new string
was a third of a frame of Life.
Sourcepub fn ensure_sheet(&mut self, name: &str) -> usize
pub fn ensure_sheet(&mut self, name: &str) -> usize
The sheet of that name, added last with the name as given when there
is none (VlaEnsureSheet’s shape).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workbook
impl RefUnwindSafe for Workbook
impl Send for Workbook
impl Sync for Workbook
impl Unpin for Workbook
impl UnsafeUnpin for Workbook
impl UnwindSafe for Workbook
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