pub struct WithEnv {}Expand description
An indicator of using ImportCallContext argument.
Trait Implementations§
Source§impl<WB, F> IntoFunc<WB, (), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32,), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32,), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32,), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32,), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB>, ) -> <WB as WasmBackend>::HostFunction
Auto Trait Implementations§
impl Freeze for WithEnv
impl RefUnwindSafe for WithEnv
impl Send for WithEnv
impl Sync for WithEnv
impl Unpin for WithEnv
impl UnwindSafe for WithEnv
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more