Skip to main content

IntoBuiltinMethodMut

Trait IntoBuiltinMethodMut 

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

Methods taking &mut Recv where Recv: BuiltinRecvMut, for [BuiltinBuilder::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, Recv, R, A, B, C, D, E, G> IntoBuiltinMethodMut<Recv, fn(A, B, C, D, E, G) -> R> for F
where F: Fn(&mut Recv, A, B, C, D, E, G) -> R + Send + Sync + 'static, Recv: BuiltinRecvMut + 'static, R: IntoXurValue, A: FromArg, B: FromArg, C: FromArg, D: FromArg, E: FromArg, G: FromArg,

Source§

impl<F, Recv, R, A, B, C, D, E> IntoBuiltinMethodMut<Recv, fn(A, B, C, D, E) -> R> for F
where F: Fn(&mut Recv, A, B, C, D, E) -> R + Send + Sync + 'static, Recv: BuiltinRecvMut + 'static, R: IntoXurValue, A: FromArg, B: FromArg, C: FromArg, D: FromArg, E: FromArg,

Source§

impl<F, Recv, R, A, B, C, D> IntoBuiltinMethodMut<Recv, fn(A, B, C, D) -> R> for F
where F: Fn(&mut Recv, A, B, C, D) -> R + Send + Sync + 'static, Recv: BuiltinRecvMut + 'static, R: IntoXurValue, A: FromArg, B: FromArg, C: FromArg, D: FromArg,

Source§

impl<F, Recv, R, A, B, C> IntoBuiltinMethodMut<Recv, fn(A, B, C) -> R> for F
where F: Fn(&mut Recv, A, B, C) -> R + Send + Sync + 'static, Recv: BuiltinRecvMut + 'static, R: IntoXurValue, A: FromArg, B: FromArg, C: FromArg,

Source§

impl<F, Recv, R, A, B> IntoBuiltinMethodMut<Recv, fn(A, B) -> R> for F
where F: Fn(&mut Recv, A, B) -> R + Send + Sync + 'static, Recv: BuiltinRecvMut + 'static, R: IntoXurValue, A: FromArg, B: FromArg,

Source§

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

Source§

impl<F, Recv, R> IntoBuiltinMethodMut<Recv, fn() -> R> for F
where F: Fn(&mut Recv) -> R + Send + Sync + 'static, Recv: BuiltinRecvMut + 'static, R: IntoXurValue,