Trait forky_web::ClosureFnMutT2Ext

source ·
pub trait ClosureFnMutT2Ext<T2> {
    // Required method
    fn from_func_no_args<F>(func: F) -> Self
       where dyn FnMut() -> T2: WasmClosure,
             F: IntoWasmClosure<dyn FnMut() -> T2> + 'static;
}

Required Methods§

source

fn from_func_no_args<F>(func: F) -> Self
where dyn FnMut() -> T2: WasmClosure, F: IntoWasmClosure<dyn FnMut() -> T2> + 'static,

Equivelant of new but without need for explicit type annotations

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T2> ClosureFnMutT2Ext<T2> for Closure<dyn FnMut() -> T2>

source§

fn from_func_no_args<F>(func: F) -> Self
where dyn FnMut() -> T2: WasmClosure, F: IntoWasmClosure<dyn FnMut() -> T2> + 'static,

Equivelant of new but without need for explicit type annotations

Implementors§