[−][src]Struct wasm3::Function
A callable wasm3 function.
This has a generic call
function for up to 26 parameters emulating an overloading behaviour without having to resort to tuples.
These are hidden to not pollute the documentation.
Implementations
impl<'rt, Args, Ret> Function<'rt, Args, Ret> where
Args: WasmArgs,
Ret: WasmType,
[src]
Args: WasmArgs,
Ret: WasmType,
pub fn import_module_name(&self) -> &str
[src]
The name of the import module of this function.
pub fn name(&self) -> &str
[src]
The name of this function.
impl<'rt, ARG, Ret> Function<'rt, ARG, Ret> where
Ret: WasmType,
ARG: WasmArg,
[src]
Ret: WasmType,
ARG: WasmArg,
pub fn call(&self, arg: ARG) -> Result<Ret>
[src]
Calls this function with the given parameter. This is implemented with variable arguments depending on the functions Args type.
impl<'rt, Ret> Function<'rt, (), Ret> where
Ret: WasmType,
[src]
Ret: WasmType,
pub fn call(&self) -> Result<Ret>
[src]
Calls this function. This is implemented with variable arguments depending on the functions Args type.
Trait Implementations
impl<'rt, Args: Clone, Ret: Clone> Clone for Function<'rt, Args, Ret>
[src]
impl<'rt, Args: Copy, Ret: Copy> Copy for Function<'rt, Args, Ret>
[src]
impl<'rt, Args: Debug, Ret: Debug> Debug for Function<'rt, Args, Ret>
[src]
impl<'rt, Args, Ret> Eq for Function<'rt, Args, Ret>
[src]
impl<'rt, Args, Ret> Hash for Function<'rt, Args, Ret>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'rt, Args, Ret> PartialEq<Function<'rt, Args, Ret>> for Function<'rt, Args, Ret>
[src]
Auto Trait Implementations
impl<'rt, Args, Ret> !RefUnwindSafe for Function<'rt, Args, Ret>
impl<'rt, Args, Ret> !Send for Function<'rt, Args, Ret>
impl<'rt, Args, Ret> !Sync for Function<'rt, Args, Ret>
impl<'rt, Args, Ret> Unpin for Function<'rt, Args, Ret>
impl<'rt, Args, Ret> !UnwindSafe for Function<'rt, Args, Ret>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,