pub struct DateValueFn;Expand description
DATEVALUE(date_text) - Converts a date string to serial number
Trait Implementations§
Source§impl Debug for DateValueFn
impl Debug for DateValueFn
Source§impl Function for DateValueFn
impl Function for DateValueFn
fn name(&self) -> &'static str
fn min_args(&self) -> usize
fn arg_schema(&self) -> &'static [ArgSchema]
Source§fn eval_scalar<'a, 'b>(
&self,
args: &'a [ArgumentHandle<'a, 'b>],
_ctx: &dyn FunctionContext,
) -> Result<LiteralValue, ExcelError>
fn eval_scalar<'a, 'b>( &self, args: &'a [ArgumentHandle<'a, 'b>], _ctx: &dyn FunctionContext, ) -> Result<LiteralValue, ExcelError>
The default, scalar evaluation path. Read more
fn namespace(&self) -> &'static str
fn variadic(&self) -> bool
fn volatile(&self) -> bool
Source§fn aliases(&self) -> &'static [&'static str]
fn aliases(&self) -> &'static [&'static str]
Optional list of additional alias names (case-insensitive) that should resolve to this
function. Default: empty slice. Implementors can override to expose legacy names.
Returned slice must have ’static lifetime (typically a static array reference).
fn function_salt(&self) -> u64
Source§fn eval_fold(
&self,
_f: &mut dyn FnFoldCtx,
) -> Option<Result<LiteralValue, ExcelError>>
fn eval_fold( &self, _f: &mut dyn FnFoldCtx, ) -> Option<Result<LiteralValue, ExcelError>>
Source§fn eval_map(
&self,
_m: &mut dyn FnMapCtx,
) -> Option<Result<LiteralValue, ExcelError>>
fn eval_map( &self, _m: &mut dyn FnMapCtx, ) -> Option<Result<LiteralValue, ExcelError>>
Source§fn eval_window<'a, 'b>(
&self,
_w: &mut SimpleWindowCtx<'a, 'b>,
) -> Option<Result<LiteralValue, ExcelError>>
fn eval_window<'a, 'b>( &self, _w: &mut SimpleWindowCtx<'a, 'b>, ) -> Option<Result<LiteralValue, ExcelError>>
An optional, optimized path for windowed functions (e.g.,
MOVING_AVERAGE). Read moreSource§fn eval_reference<'a, 'b>(
&self,
_args: &'a [ArgumentHandle<'a, 'b>],
_ctx: &dyn FunctionContext,
) -> Option<Result<ReferenceType, ExcelError>>
fn eval_reference<'a, 'b>( &self, _args: &'a [ArgumentHandle<'a, 'b>], _ctx: &dyn FunctionContext, ) -> Option<Result<ReferenceType, ExcelError>>
Optional reference result path. Only called by the interpreter/engine
when the callsite expects a reference (e.g., range combinators, by-ref
argument positions, or spill sources). Read more
Source§fn dispatch<'a, 'b>(
&self,
args: &'a [ArgumentHandle<'a, 'b>],
ctx: &dyn FunctionContext,
) -> Result<LiteralValue, ExcelError>
fn dispatch<'a, 'b>( &self, args: &'a [ArgumentHandle<'a, 'b>], ctx: &dyn FunctionContext, ) -> Result<LiteralValue, ExcelError>
Dispatch to the most optimal evaluation path based on capabilities.
This default implementation checks caps and calls the appropriate eval method.
Auto Trait Implementations§
impl Freeze for DateValueFn
impl RefUnwindSafe for DateValueFn
impl Send for DateValueFn
impl Sync for DateValueFn
impl Unpin for DateValueFn
impl UnwindSafe for DateValueFn
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