Trait red4ext_rs::MethodInvocable

source ·
pub trait MethodInvocable<Ctx, A, R>: Sealed<Ctx, A, R> {
    const FN_TYPE: FunctionType;

    // Required method
    fn invoke(self, ctx: &Ctx, frame: &mut StackFrame, ret: &mut MaybeUninit<R>);
}
Expand description

A trait for functions that can be exported as class methods.

Required Associated Constants§

Required Methods§

source

fn invoke(self, ctx: &Ctx, frame: &mut StackFrame, ret: &mut MaybeUninit<R>)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Ctx, A, B, C, D, E, F, G, R, FN> MethodInvocable<Ctx, (A, B, C, D, E, F, G), <R as IntoRepr>::Repr> for FN
where FN: Fn(&Ctx, A, B, C, D, E, F, G) -> R, A: FromRepr, A::Repr: Default, B: FromRepr, B::Repr: Default, C: FromRepr, C::Repr: Default, D: FromRepr, D::Repr: Default, E: FromRepr, E::Repr: Default, F: FromRepr, F::Repr: Default, G: FromRepr, G::Repr: Default, R: IntoRepr,

source§

impl<Ctx, A, B, C, D, E, F, R, FN> MethodInvocable<Ctx, (A, B, C, D, E, F), <R as IntoRepr>::Repr> for FN
where FN: Fn(&Ctx, A, B, C, D, E, F) -> R, A: FromRepr, A::Repr: Default, B: FromRepr, B::Repr: Default, C: FromRepr, C::Repr: Default, D: FromRepr, D::Repr: Default, E: FromRepr, E::Repr: Default, F: FromRepr, F::Repr: Default, R: IntoRepr,

source§

impl<Ctx, A, B, C, D, E, R, FN> MethodInvocable<Ctx, (A, B, C, D, E), <R as IntoRepr>::Repr> for FN
where FN: Fn(&Ctx, A, B, C, D, E) -> R, A: FromRepr, A::Repr: Default, B: FromRepr, B::Repr: Default, C: FromRepr, C::Repr: Default, D: FromRepr, D::Repr: Default, E: FromRepr, E::Repr: Default, R: IntoRepr,

source§

impl<Ctx, A, B, C, D, R, FN> MethodInvocable<Ctx, (A, B, C, D), <R as IntoRepr>::Repr> for FN
where FN: Fn(&Ctx, A, B, C, D) -> R, A: FromRepr, A::Repr: Default, B: FromRepr, B::Repr: Default, C: FromRepr, C::Repr: Default, D: FromRepr, D::Repr: Default, R: IntoRepr,

source§

impl<Ctx, A, B, C, R, FN> MethodInvocable<Ctx, (A, B, C), <R as IntoRepr>::Repr> for FN
where FN: Fn(&Ctx, A, B, C) -> R, A: FromRepr, A::Repr: Default, B: FromRepr, B::Repr: Default, C: FromRepr, C::Repr: Default, R: IntoRepr,

source§

impl<Ctx, A, B, R, FN> MethodInvocable<Ctx, (A, B), <R as IntoRepr>::Repr> for FN
where FN: Fn(&Ctx, A, B) -> R, A: FromRepr, A::Repr: Default, B: FromRepr, B::Repr: Default, R: IntoRepr,

source§

impl<Ctx, A, R, FN> MethodInvocable<Ctx, (A,), <R as IntoRepr>::Repr> for FN
where FN: Fn(&Ctx, A) -> R, A: FromRepr, A::Repr: Default, R: IntoRepr,

source§

impl<Ctx, R, FN> MethodInvocable<Ctx, (), <R as IntoRepr>::Repr> for FN
where FN: Fn(&Ctx) -> R, R: IntoRepr,