Skip to main content

AsGuestFunctionDefinition

Trait AsGuestFunctionDefinition 

Source
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§

Source

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".

Implementors§

Source§

impl<F, Args, Output> AsGuestFunctionDefinition<Output, Args> for F
where F: IntoGuestFunction<Output, Args>, Args: ParameterTuple, Output: SupportedReturnType,