Trait koto_runtime::KotoFunction

source ·
pub trait KotoFunction: Fn(&mut CallContext<'_>) -> Result<KValue> + KotoSend + KotoSync + 'static { }
Expand description

A trait for native functions used by the Koto runtime

Implementors§

source§

impl<T> KotoFunction for T
where T: Fn(&mut CallContext<'_>) -> Result<KValue> + KotoSend + KotoSync + 'static,