pub trait AddScriptFunctionAppExt {
    // Required method
    fn add_script_function<Out, Marker, A: 'static, const N: usize, const X: bool, R: 'static, const F: bool, Args>(
        &mut self,
        name: String,
        system: impl RegisterCallbackFunction<Out, Marker, A, N, X, R, F, Args>
    ) -> &mut Self;
}
Expand description

An extension trait for [App] that allows to register a script function.

Required Methods§

source

fn add_script_function<Out, Marker, A: 'static, const N: usize, const X: bool, R: 'static, const F: bool, Args>( &mut self, name: String, system: impl RegisterCallbackFunction<Out, Marker, A, N, X, R, F, Args> ) -> &mut Self

Implementations on Foreign Types§

source§

impl AddScriptFunctionAppExt for App

source§

fn add_script_function<Out, Marker, A: 'static, const N: usize, const X: bool, R: 'static, const F: bool, Args>( &mut self, name: String, system: impl RegisterCallbackFunction<Out, Marker, A, N, X, R, F, Args> ) -> &mut Self

Implementors§