Skip to main content

JsFunction

Trait JsFunction 

Source
pub trait JsFunction {
    type Ret: JsGeneric;

    const ARITY: usize;
}

Required Associated Constants§

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Ret: JsGeneric> JsFunction for fn() -> Ret

Source§

const ARITY: usize = 0

Source§

type Ret = Ret

Source§

impl<Ret: JsGeneric, Arg1: JsGeneric> JsFunction for fn(Arg1) -> Ret

Source§

const ARITY: usize = 1

Source§

type Ret = Ret

Source§

impl<Ret: JsGeneric, Arg1: JsGeneric, Arg2: JsGeneric> JsFunction for fn(Arg1, Arg2) -> Ret

Source§

const ARITY: usize = 2

Source§

type Ret = Ret

Source§

impl<Ret: JsGeneric, Arg1: JsGeneric, Arg2: JsGeneric, Arg3: JsGeneric> JsFunction for fn(Arg1, Arg2, Arg3) -> Ret

Source§

const ARITY: usize = 3

Source§

type Ret = Ret

Source§

impl<Ret: JsGeneric, Arg1: JsGeneric, Arg2: JsGeneric, Arg3: JsGeneric, Arg4: JsGeneric> JsFunction for fn(Arg1, Arg2, Arg3, Arg4) -> Ret

Source§

const ARITY: usize = 4

Source§

type Ret = Ret

Source§

impl<Ret: JsGeneric, Arg1: JsGeneric, Arg2: JsGeneric, Arg3: JsGeneric, Arg4: JsGeneric, Arg5: JsGeneric> JsFunction for fn(Arg1, Arg2, Arg3, Arg4, Arg5) -> Ret

Source§

const ARITY: usize = 5

Source§

type Ret = Ret

Source§

impl<Ret: JsGeneric, Arg1: JsGeneric, Arg2: JsGeneric, Arg3: JsGeneric, Arg4: JsGeneric, Arg5: JsGeneric, Arg6: JsGeneric> JsFunction for fn(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> Ret

Source§

const ARITY: usize = 6

Source§

type Ret = Ret

Source§

impl<Ret: JsGeneric, Arg1: JsGeneric, Arg2: JsGeneric, Arg3: JsGeneric, Arg4: JsGeneric, Arg5: JsGeneric, Arg6: JsGeneric, Arg7: JsGeneric> JsFunction for fn(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7) -> Ret

Source§

const ARITY: usize = 7

Source§

type Ret = Ret

Source§

impl<Ret: JsGeneric, Arg1: JsGeneric, Arg2: JsGeneric, Arg3: JsGeneric, Arg4: JsGeneric, Arg5: JsGeneric, Arg6: JsGeneric, Arg7: JsGeneric, Arg8: JsGeneric> JsFunction for fn(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8) -> Ret

Source§

const ARITY: usize = 8

Source§

type Ret = Ret

Implementors§