Open JosiahParry opened 4 months ago
I've also made another discovery: https://extendr.github.io/extendr/extendr_macros/derive.IntoRobj.html
I believe it does the same thing, where each field is extracted using dollar
and a conversion is performed.
This should be renamed to IntoList
or IntoRList
.
Discovered this yesterday. Wrote an impl method like so:
For a lot of simple structs, we can deserialize from an R list object directly into that struct. This is very handy if we want to be able to accept R objects like lists instead of having to create external pointers to structs