pub struct DefaultFunctionContext<'a> {
pub base: &'a dyn EvaluationContext,
pub current: Option<CellRef>,
}Expand description
Default adapter that wraps an EvaluationContext and provides the narrow FunctionContext.
Fields§
§base: &'a dyn EvaluationContext§current: Option<CellRef>Implementations§
Source§impl<'a> DefaultFunctionContext<'a>
impl<'a> DefaultFunctionContext<'a>
pub fn new(base: &'a dyn EvaluationContext, current: Option<CellRef>) -> Self
Trait Implementations§
Source§impl<'a> FunctionContext for DefaultFunctionContext<'a>
impl<'a> FunctionContext for DefaultFunctionContext<'a>
fn locale(&self) -> Locale
fn timezone(&self) -> &TimeZoneSpec
fn thread_pool(&self) -> Option<&Arc<ThreadPool>>
fn cancellation_token(&self) -> Option<&AtomicBool>
fn chunk_hint(&self) -> Option<usize>
fn volatile_level(&self) -> VolatileLevel
fn workbook_seed(&self) -> u64
fn recalc_epoch(&self) -> u64
fn current_cell(&self) -> Option<CellRef>
Source§fn 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 using the underlying engine context.
Source§fn arrow_fastpath_enabled(&self) -> bool
fn arrow_fastpath_enabled(&self) -> bool
Feature gate: enable Arrow fast paths in builtins (e.g., SUMIFS)
Source§fn date_system(&self) -> DateSystem
fn date_system(&self) -> DateSystem
Workbook date system selection (1900 vs 1904).
Source§fn get_criteria_mask(
&self,
view: &ArrowRangeView<'_>,
col_in_view: usize,
pred: &CriteriaPredicate,
) -> Option<Arc<BooleanArray>>
fn get_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.
Returns None if not supported by the underlying context.
Source§fn get_or_build_mask(&self, _key: &str) -> Option<DenseMask>
fn get_or_build_mask(&self, _key: &str) -> Option<DenseMask>
Get a pre-built criteria mask if available (Phase 3)
Returns None if not warmed up or not available
Source§fn rng_for_current(&self, fn_salt: u64) -> SmallRng
fn rng_for_current(&self, fn_salt: u64) -> SmallRng
Deterministic RNG seeded for the current evaluation site and function salt.
Auto Trait Implementations§
impl<'a> Freeze for DefaultFunctionContext<'a>
impl<'a> !RefUnwindSafe for DefaultFunctionContext<'a>
impl<'a> Send for DefaultFunctionContext<'a>
impl<'a> Sync for DefaultFunctionContext<'a>
impl<'a> Unpin for DefaultFunctionContext<'a>
impl<'a> !UnwindSafe for DefaultFunctionContext<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more