pub trait EventScriptExt {
// Required methods
fn register_action(
self,
name: impl Into<Il2CppString>,
callback: extern "C" fn(Array<DynValue>, OptionalMethod),
);
fn register_function(
self,
name: impl Into<Il2CppString>,
callback: extern "C" fn(Array<DynValue>, OptionalMethod) -> DynValue,
);
}Required Methods§
fn register_action( self, name: impl Into<Il2CppString>, callback: extern "C" fn(Array<DynValue>, OptionalMethod), )
fn register_function( self, name: impl Into<Il2CppString>, callback: extern "C" fn(Array<DynValue>, OptionalMethod) -> DynValue, )
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.