[bindings] Use common conv in `_write` impls, drop type restrictions
authorMatt Corallo <git@bluematt.me>
Wed, 30 Dec 2020 22:50:43 +0000 (17:50 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Jan 2021 00:49:14 +0000 (19:49 -0500)
commit88424ca6dafb29e4312953108bc48d6e5dbbeca1
tree5dfff67c46a8eaada479f91fe445ec63b1cb55ac
parentb8f49c04ba3e86a02f101861e61826086e40b7e7
[bindings] Use common conv in `_write` impls, drop type restrictions

This expands the manual implementation logic for `*_write` and
`*_read` methods to most types, converting the `*_write` path to
the common type-conversion logic to ensure it works.

Note that `*_write_void` is still only implemented for has-inner
types, as its unclear what the `void*` would point to for others.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs