mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
make func clonable
This commit is contained in:
parent
03df15a3eb
commit
c3e9e36782
@ -216,6 +216,7 @@ pub struct DynamicFunc<'a> {
|
|||||||
unsafe impl<'a> Send for DynamicFunc<'a> {}
|
unsafe impl<'a> Send for DynamicFunc<'a> {}
|
||||||
|
|
||||||
/// Represents a function that can be used by WebAssembly.
|
/// Represents a function that can be used by WebAssembly.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct Func<'a, Args = (), Rets = (), Inner: Kind = Wasm> {
|
pub struct Func<'a, Args = (), Rets = (), Inner: Kind = Wasm> {
|
||||||
inner: Inner,
|
inner: Inner,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user