Map Vecs to slices when constructing a getter for a public field
authorMatt Corallo <git@bluematt.me>
Mon, 6 Sep 2021 00:53:56 +0000 (00:53 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Sep 2021 17:36:18 +0000 (17:36 +0000)
commit6adbe96a03e129820d161b12bff80e748c68f68e
tree6da884078c2bb835cca5a5b699cbcfdde752dbbd
parent8586fbb44bc6788e216acb5504d76a311d699593
Map Vecs to slices when constructing a getter for a public field

This adds logic to allow constructing a getter for a public Vec
field where the inner items are opaque structs. In order to do this
we map them as slices, which will end up generating Vecs with
elements which all have their `is_owned` flags unset.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs