Skip to main content

FunctionIntoClosure

Trait FunctionIntoClosure 

Source
pub trait FunctionIntoClosure: JsFunction {
    type ClosureTypeMut: WasmClosure + ?Sized;
}

Required Associated Types§

Source

type ClosureTypeMut: WasmClosure + ?Sized

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<A: FromWasmAbi + JsGeneric, B: FromWasmAbi + JsGeneric, C: FromWasmAbi + JsGeneric, D: FromWasmAbi + JsGeneric, E: FromWasmAbi + JsGeneric, F: FromWasmAbi + JsGeneric, G: FromWasmAbi + JsGeneric, H: FromWasmAbi + JsGeneric, R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn(A, B, C, D, E, F, G, H) -> R

Source§

type ClosureTypeMut = dyn FnMut(A, B, C, D, E, F, G, H) -> R

Source§

impl<A: FromWasmAbi + JsGeneric, B: FromWasmAbi + JsGeneric, C: FromWasmAbi + JsGeneric, D: FromWasmAbi + JsGeneric, E: FromWasmAbi + JsGeneric, F: FromWasmAbi + JsGeneric, G: FromWasmAbi + JsGeneric, R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn(A, B, C, D, E, F, G) -> R

Source§

type ClosureTypeMut = dyn FnMut(A, B, C, D, E, F, G) -> R

Source§

impl<A: FromWasmAbi + JsGeneric, B: FromWasmAbi + JsGeneric, C: FromWasmAbi + JsGeneric, D: FromWasmAbi + JsGeneric, E: FromWasmAbi + JsGeneric, F: FromWasmAbi + JsGeneric, R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn(A, B, C, D, E, F) -> R

Source§

type ClosureTypeMut = dyn FnMut(A, B, C, D, E, F) -> R

Source§

impl<A: FromWasmAbi + JsGeneric, B: FromWasmAbi + JsGeneric, C: FromWasmAbi + JsGeneric, D: FromWasmAbi + JsGeneric, E: FromWasmAbi + JsGeneric, R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn(A, B, C, D, E) -> R

Source§

type ClosureTypeMut = dyn FnMut(A, B, C, D, E) -> R

Source§

impl<A: FromWasmAbi + JsGeneric, B: FromWasmAbi + JsGeneric, C: FromWasmAbi + JsGeneric, D: FromWasmAbi + JsGeneric, R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn(A, B, C, D) -> R

Source§

type ClosureTypeMut = dyn FnMut(A, B, C, D) -> R

Source§

impl<A: FromWasmAbi + JsGeneric, B: FromWasmAbi + JsGeneric, C: FromWasmAbi + JsGeneric, R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn(A, B, C) -> R

Source§

type ClosureTypeMut = dyn FnMut(A, B, C) -> R

Source§

impl<A: FromWasmAbi + JsGeneric, B: FromWasmAbi + JsGeneric, R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn(A, B) -> R

Source§

type ClosureTypeMut = dyn FnMut(A, B) -> R

Source§

impl<A: FromWasmAbi + JsGeneric, R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn(A) -> R

Source§

type ClosureTypeMut = dyn FnMut(A) -> R

Source§

impl<R: IntoWasmAbi + JsGeneric> FunctionIntoClosure for fn() -> R

Source§

type ClosureTypeMut = dyn FnMut() -> R

Implementors§