Skip to main content

CustomCallable

Trait CustomCallable 

Source
pub trait CustomCallable: Send + Sync {
    // Required methods
    fn arity(&self) -> usize;
    fn invoke<'ctx>(
        &self,
        interp: &Interpreter<'ctx>,
        args: &[LiteralValue],
    ) -> Result<CalcValue<'ctx>, ExcelError>;
}

Required Methods§

Source

fn arity(&self) -> usize

Source

fn invoke<'ctx>( &self, interp: &Interpreter<'ctx>, args: &[LiteralValue], ) -> Result<CalcValue<'ctx>, ExcelError>

Implementors§