pub trait IntoHostFunctionDefinition<C: HostSchema, Signature>: Definition<C, Signature> { }Expand description
A plain callback or configured HostFunction accepted by Rustia.
This sealed trait can be used as a generic bound. Closures and function pointers implement it automatically when their arguments and results are supported by Rustia’s callback conversions.
ⓘ
struct CustomDefinition;
impl rustia::IntoHostFunctionDefinition<(), ()> for CustomDefinition {}