pub trait AsGuestFunctionDefinition<Output, Args>where
Self: Function<Output, Args, HyperlightGuestError> + IntoGuestFunction<Output, Args>,
Output: SupportedReturnType,
Args: ParameterTuple,{
// Required method
fn as_guest_function_definition(
&self,
name: impl Into<String>,
) -> GuestFunctionDefinition<GuestFunc>;
}Expand description
Trait for functions that can be converted to a GuestFunctionDefinition<GuestFunc>
Required Methods§
Sourcefn as_guest_function_definition(
&self,
name: impl Into<String>,
) -> GuestFunctionDefinition<GuestFunc>
fn as_guest_function_definition( &self, name: impl Into<String>, ) -> GuestFunctionDefinition<GuestFunc>
Get the GuestFunctionDefinition for this function
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".