pub fn wrap_with_input<A: Default, T, I>(
    args: Option<&A>,
    input: I,
    lib: LibArc,
    logger: Option<&'static PluginLogger>,
    out: &mut MaybeUninit<T>,
    create_fn: impl FnOnce(&A, I, LibArc) -> Result<T, Error>
) -> i32
Expand description

Wrapper for instantiating object with all needed parameters

This function will initialize the PluginLogger, parse args into Args and call the create_fn with input forwarded.

This function is used by the connector proc macro