Open veewee opened 1 year ago
Hello can you try to return a reference of your builder in from_wat
? If it works, I'll show you why
Unless I misunderstood, That doesn't seem to work.
Tried returning &InstanceBuilder
, &mut InstanceBuilder
, &'static mut InstanceBuilder
. None of them implement IntoZval
For example:
trait `IntoZval` is not implemented for `&InstanceBuilder`
InstanceBuilder itself does implement ZvalConvert
, but not the referenced version.
Hello there,
Absolute Rust noob out here! ;)
I'm playing around with these bindings and notice I can't really get a way around this structure:
which should allow thsese PHP lines:
The problem here is lifetimes:
But lifetimes are not supported according to the docs. Yet stubburon as I am, I try to do it anyways, resulting in:
So I am getting a bit stuck on this concept and think its more of a limitation at the moment of these bindings. The docs suggest using an Arc for this, but wrapping an Arc around it - yet this happens on method binding, and there is no
From
forimports: Arc<&mut ZendClassObject<WasmImports>>
So my questions here are:
Thanks for this package, it's very cool!
FYI - a bit more context about the above code can be found here: https://github.com/veewee/ext-wasm/pull/23