Skip to main content

IntoNativeMethod

Trait IntoNativeMethod 

Source
pub trait IntoNativeMethod<T, Marker> {
    // Required method
    fn into_native(
        self,
    ) -> (Signature, Box<dyn Fn(&mut dyn Context, &[Value]) -> RunResult<Value> + Send + Sync>);
}
Expand description

Methods taking &T, for [TypeBuilder::method].

Required Methods§

Source

fn into_native( self, ) -> (Signature, Box<dyn Fn(&mut dyn Context, &[Value]) -> RunResult<Value> + Send + Sync>)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, T, R, A, B, C, D, E, G> IntoNativeMethod<T, fn(A, B, C, D, E, G) -> R> for F
where F: Fn(&T, A, B, C, D, E, G) -> R + Send + Sync + 'static, T: Facet<'static> + Send + 'static, R: IntoXurValue, A: FromArg, B: FromArg, C: FromArg, D: FromArg, E: FromArg, G: FromArg,

Source§

impl<F, T, R, A, B, C, D, E> IntoNativeMethod<T, fn(A, B, C, D, E) -> R> for F
where F: Fn(&T, A, B, C, D, E) -> R + Send + Sync + 'static, T: Facet<'static> + Send + 'static, R: IntoXurValue, A: FromArg, B: FromArg, C: FromArg, D: FromArg, E: FromArg,

Source§

impl<F, T, R, A, B, C, D> IntoNativeMethod<T, fn(A, B, C, D) -> R> for F
where F: Fn(&T, A, B, C, D) -> R + Send + Sync + 'static, T: Facet<'static> + Send + 'static, R: IntoXurValue, A: FromArg, B: FromArg, C: FromArg, D: FromArg,

Source§

impl<F, T, R, A, B, C> IntoNativeMethod<T, fn(A, B, C) -> R> for F
where F: Fn(&T, A, B, C) -> R + Send + Sync + 'static, T: Facet<'static> + Send + 'static, R: IntoXurValue, A: FromArg, B: FromArg, C: FromArg,

Source§

impl<F, T, R, A, B> IntoNativeMethod<T, fn(A, B) -> R> for F
where F: Fn(&T, A, B) -> R + Send + Sync + 'static, T: Facet<'static> + Send + 'static, R: IntoXurValue, A: FromArg, B: FromArg,

Source§

impl<F, T, R, A> IntoNativeMethod<T, fn(A) -> R> for F
where F: Fn(&T, A) -> R + Send + Sync + 'static, T: Facet<'static> + Send + 'static, R: IntoXurValue, A: FromArg,

Source§

impl<F, T, R> IntoNativeMethod<T, fn() -> R> for F
where F: Fn(&T) -> R + Send + Sync + 'static, T: Facet<'static> + Send + 'static, R: IntoXurValue,