Trait SafeIntoJsRuntime

Source
pub trait SafeIntoJsRuntime: Sized {
    // Required method
    fn safe_into_js_runtime(self) -> PassedToJsRuntime;
}

Required Methods§

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<T: SafeIntoJsRuntime> SafeIntoJsRuntime for Box<T>

Implementors§

Source§

impl<F> SafeIntoJsRuntime for AnyFn<F>
where F: 'static + WasmClosure + ?Sized + DynFn,

Source§

impl<F> SafeIntoJsRuntime for AnyFnMut<F>
where F: 'static + WasmClosure + ?Sized + DynFnMut,

Source§

impl<F> SafeIntoJsRuntime for AnyFnOnce<F>
where F: 'static + ?Sized + DynFnOnce, Box<F>: WasmClosureFnOnce<F::ArgsTuple, F::Output>,

Source§

impl<T> SafeIntoJsRuntime for MutableRefRc<T>
where dyn Fn(T): WasmClosure, T: 'static,

Source§

impl<T: ToJs + FromJs> SafeIntoJsRuntime for MutableRefJs<T>