so am I right in thinking that every rust function with a generic return, e.g. collect(), sum(), into(), is implemented by constraining the return to implement some trait and then just calling that trait?
-
-
What's happening here is that SQLite needs a C function pointer for "body of this custom SQL function" (which takes a `void *` of whatever "context" you want), and then another function pointer to drop that context. 1/
-
We wanted an API where you just give us a closure with the function body, so our context is just a boxed trait object for that (wrapped in our own closure to handle deserialization of arguments and serialization of return value) 2/
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.