pub trait EvaluationContext: Resolver + FunctionProvider {
Show 17 methods
// Provided methods
fn thread_pool(&self) -> Option<&Arc<ThreadPool>> { ... }
fn cancellation_token(&self) -> Option<&AtomicBool> { ... }
fn chunk_hint(&self) -> Option<usize> { ... }
fn resolve_range_view<'c>(
&'c self,
_reference: &ReferenceType,
_current_sheet: &str,
) -> Result<RangeView<'c>, ExcelError> { ... }
fn locale(&self) -> Locale { ... }
fn timezone(&self) -> &TimeZoneSpec { ... }
fn volatile_level(&self) -> VolatileLevel { ... }
fn workbook_seed(&self) -> u64 { ... }
fn recalc_epoch(&self) -> u64 { ... }
fn used_rows_for_columns(
&self,
_sheet: &str,
_start_col: u32,
_end_col: u32,
) -> Option<(u32, u32)> { ... }
fn used_cols_for_rows(
&self,
_sheet: &str,
_start_row: u32,
_end_row: u32,
) -> Option<(u32, u32)> { ... }
fn sheet_bounds(&self, _sheet: &str) -> Option<(u32, u32)> { ... }
fn data_snapshot_id(&self) -> u64 { ... }
fn backend_caps(&self) -> BackendCaps { ... }
fn arrow_fastpath_enabled(&self) -> bool { ... }
fn date_system(&self) -> DateSystem { ... }
fn build_criteria_mask(
&self,
_view: &ArrowRangeView<'_>,
_col_in_view: usize,
_pred: &CriteriaPredicate,
) -> Option<Arc<BooleanArray>> { ... }
}Provided Methods§
Sourcefn thread_pool(&self) -> Option<&Arc<ThreadPool>>
fn thread_pool(&self) -> Option<&Arc<ThreadPool>>
Get access to the shared thread pool for parallel evaluation Returns None if parallel evaluation is disabled or unavailable
Sourcefn cancellation_token(&self) -> Option<&AtomicBool>
fn cancellation_token(&self) -> Option<&AtomicBool>
Optional cancellation token. When Some, long-running operations should periodically abort.
Sourcefn chunk_hint(&self) -> Option<usize>
fn chunk_hint(&self) -> Option<usize>
Optional chunk size hint for streaming visitors.
Sourcefn resolve_range_view<'c>(
&'c self,
_reference: &ReferenceType,
_current_sheet: &str,
) -> Result<RangeView<'c>, ExcelError>
fn resolve_range_view<'c>( &'c self, _reference: &ReferenceType, _current_sheet: &str, ) -> Result<RangeView<'c>, ExcelError>
Resolve a reference into a RangeView with clear bounds.
Implementations should resolve un/partially bounded references using used-region.
Sourcefn timezone(&self) -> &TimeZoneSpec
fn timezone(&self) -> &TimeZoneSpec
Timezone provider for date/time functions Default: Local (Excel-compatible behavior) Functions should use local timezone when this returns Local
Sourcefn volatile_level(&self) -> VolatileLevel
fn volatile_level(&self) -> VolatileLevel
Volatile granularity. Default Always for backwards compatibility.
Sourcefn workbook_seed(&self) -> u64
fn workbook_seed(&self) -> u64
A stable workbook seed for RNG composition.
Sourcefn recalc_epoch(&self) -> u64
fn recalc_epoch(&self) -> u64
Recalc epoch that increments on each full recalc when appropriate.
Sourcefn used_rows_for_columns(
&self,
_sheet: &str,
_start_col: u32,
_end_col: u32,
) -> Option<(u32, u32)>
fn used_rows_for_columns( &self, _sheet: &str, _start_col: u32, _end_col: u32, ) -> Option<(u32, u32)>
Optional: Return the min/max used rows for a set of columns on a sheet. When None, the backend does not provide used-region hints.
Sourcefn used_cols_for_rows(
&self,
_sheet: &str,
_start_row: u32,
_end_row: u32,
) -> Option<(u32, u32)>
fn used_cols_for_rows( &self, _sheet: &str, _start_row: u32, _end_row: u32, ) -> Option<(u32, u32)>
Optional: Return the min/max used columns for a set of rows on a sheet. When None, the backend does not provide used-region hints.
Sourcefn sheet_bounds(&self, _sheet: &str) -> Option<(u32, u32)>
fn sheet_bounds(&self, _sheet: &str) -> Option<(u32, u32)>
Optional: Physical sheet bounds (max rows, max cols) if known.
Sourcefn data_snapshot_id(&self) -> u64
fn data_snapshot_id(&self) -> u64
Monotonic identifier for the current data snapshot; increments on mutation.
Sourcefn backend_caps(&self) -> BackendCaps
fn backend_caps(&self) -> BackendCaps
Backend capability advertisement for IO/adapters.
Sourcefn arrow_fastpath_enabled(&self) -> bool
fn arrow_fastpath_enabled(&self) -> bool
Feature gate: enable Arrow fast paths in builtins (e.g., SUMIFS). Default is false; engines that wish to enable must override.
Sourcefn date_system(&self) -> DateSystem
fn date_system(&self) -> DateSystem
Workbook date system selection (1900 vs 1904). Defaults to 1900 for compatibility.
Sourcefn build_criteria_mask(
&self,
_view: &ArrowRangeView<'_>,
_col_in_view: usize,
_pred: &CriteriaPredicate,
) -> Option<Arc<BooleanArray>>
fn build_criteria_mask( &self, _view: &ArrowRangeView<'_>, _col_in_view: usize, _pred: &CriteriaPredicate, ) -> Option<Arc<BooleanArray>>
Optional: Build or fetch a cached boolean mask for a criterion over an Arrow-backed view. Implementations should return None if not supported.