make func clonable

This commit is contained in:
vms 2020-05-02 12:28:00 +03:00
parent 03df15a3eb
commit c3e9e36782

View File

@ -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,