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
sheet_order: Vec<String>Store sheet order, so SHEET() works.
sheets is a HashMap, so this is needed
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