FileMakerFunction

Trait FileMakerFunction 

Source
pub trait FileMakerFunction {
    // Required method
    fn function(
        id: i16,
        env: &ExprEnv,
        args: &DataVect,
        result: &mut Data,
    ) -> FMError;

    // Provided method
    extern "C" fn extern_func(
        id: i16,
        env_ptr: *const fmx_ExprEnv,
        args_ptr: *const fmx_DataVect,
        result_ptr: *mut fmx_Data,
    ) -> FMError { ... }
}

Required Methods§

Source

fn function( id: i16, env: &ExprEnv, args: &DataVect, result: &mut Data, ) -> FMError

Define your custom function here. Set the return value to the result parameter.

Provided Methods§

Source

extern "C" fn extern_func( id: i16, env_ptr: *const fmx_ExprEnv, args_ptr: *const fmx_DataVect, result_ptr: *mut fmx_Data, ) -> FMError

Entry point for FileMaker to call your function.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§