Skip to main content

IntoNativeMethodMut

Trait IntoNativeMethodMut 

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

Methods taking &mut T, for [TypeBuilder::method_mut].

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> IntoNativeMethodMut<T, fn(A, B, C, D, E, G) -> R> for F
where F: Fn(&mut 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> IntoNativeMethodMut<T, fn(A, B, C, D, E) -> R> for F
where F: Fn(&mut 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> IntoNativeMethodMut<T, fn(A, B, C, D) -> R> for F
where F: Fn(&mut 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> IntoNativeMethodMut<T, fn(A, B, C) -> R> for F
where F: Fn(&mut 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> IntoNativeMethodMut<T, fn(A, B) -> R> for F
where F: Fn(&mut T, A, B) -> R + Send + Sync + 'static, T: Facet<'static> + Send + 'static, R: IntoXurValue, A: FromArg, B: FromArg,

Source§

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

Source§

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