pub struct Context<'a> {
pub sheets: HashMap<String, &'a Sheet>,
pub pivot_tables: &'a [PivotTable],
pub sheet_order: Vec<String>,
}Expand description
Context for evaluating expressions, containing references to other sheets
Fields§
§sheets: HashMap<String, &'a Sheet>Map of sheet names to sheet references for cross-sheet lookups
pivot_tables: &'a [PivotTable]Every pivot table in the workbook, so GETPIVOTDATA can resolve a
rendered pivot’s destination cell back to its definition. Pivot
tables are workbook-level (like Context.sheets’ cross-sheet
lookups), not sheet-scoped, so this lives here rather than on
Sheet itself.
sheet_order: Vec<String>Sheet names in true workbook order, so SHEET() can report a real
ordinal. sheets is an unordered HashMap, which is why this is
tracked separately rather than derived from it – true order only
exists one layer up, in visi’s WorkbookManager::sheets (a
Vec), which populates this when building the context.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
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