(&self)
| 104 | |
| 105 | impl TryClone for Definition { |
| 106 | fn try_clone(&self) -> Result<Self, OutOfMemory> { |
| 107 | Ok(match self { |
| 108 | Self::Instance(i) => Self::Instance(i.try_clone()?), |
| 109 | Self::Func(f) => Self::Func(f.try_clone()?), |
| 110 | Self::Module(m) => Self::Module(m.clone()), |
| 111 | Self::Resource(r, f) => Self::Resource(*r, f.try_clone()?), |
| 112 | }) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | impl<T: 'static> Linker<T> { |