pub struct FnSpec {
pub name: &'static str,
pub min_args: usize,
pub max_args: usize,
pub category: Category,
pub volatile: bool,
pub scalar_args: &'static [bool],
pub value_args: &'static [bool],
pub signature: &'static str,
pub description: &'static str,
pub imp: FnImpl,
}Fields§
§name: &'static strUpper-case, without any _xlfn. prefix.
min_args: usize§max_args: usizeusize::MAX for variadic functions (Excel allows 255 arguments).
category: Category§volatile: bool§scalar_args: &'static [bool]For automatic array lifting: true for each parameter position that expects a scalar. When an argument at a scalar position is an array, the function is applied element-wise (broadcast like Excel’s dynamic arrays). The last entry repeats for variadic tails; an empty slice means no lifting.
value_args: &'static [bool]Parameter positions that take a single value and reject a reference to more than one
cell with #VALUE! (the Analysis ToolPak functions: EOMONTH, WORKDAY, COUPDAYS, BIN2DEC…),
where other scalar parameters lift the range. Arrays that aren’t references still lift.
Same layout as scalar_args; filled at registration from [lift::value_args].
signature: &'static str§description: &'static str§imp: FnImplImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FnSpec
impl RefUnwindSafe for FnSpec
impl Send for FnSpec
impl Sync for FnSpec
impl Unpin for FnSpec
impl UnsafeUnpin for FnSpec
impl UnwindSafe for FnSpec
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