DelSkayn / rquickjs

High level bindings to the quickjs javascript engine
MIT License
434 stars 59 forks source link

How to create multiple signatures for a function in 0.4? #221

Closed richarddd closed 9 months ago

richarddd commented 9 months ago

In 0.3 we could create a tuple for multiple implementations of arguments to a defined function:

global.set("example", Func::from((|a:u32|a,|b:String|b,|c:i32,d:String|d)))

This no longer seems possible in 0.4?

richarddd commented 9 months ago

Never mind, it's cleaner to just work with Value instead.