Skip to main content

IntoHostFunctionDefinition

Trait IntoHostFunctionDefinition 

Source
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 {}

Implementors§

Source§

impl<C: HostSchema, Signature, F> IntoHostFunctionDefinition<C, Signature> for F
where F: Definition<C, Signature>,